Lines Matching refs:nbytes
83 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16],
88 KASSERT(nbytes);
91 for (; nbytes; nbytes -= 16, in += 16, out += 16) {
101 uint8_t out[static 16], size_t nbytes, uint8_t iv[static 16],
106 KASSERT(nbytes);
107 KASSERT(nbytes % 16 == 0);
110 cv = loadblock(in + nbytes - 16);
113 if (nbytes % 32) {
114 KASSERT(nbytes % 32 == 16);
116 if ((nbytes -= 16) == 0)
118 cv = loadblock(in + nbytes - 16);
119 storeblock(out + nbytes, cv ^ b);
125 KASSERT(nbytes >= 32);
128 b2.val[0] = cv = loadblock(in + nbytes - 32);
130 storeblock(out + nbytes - 16, cv ^ b2.val[1]);
131 if ((nbytes -= 32) == 0) {
135 cv = loadblock(in + nbytes - 16);
136 storeblock(out + nbytes, cv ^ b2.val[0]);
203 uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16],
208 KASSERT(nbytes);
209 KASSERT(nbytes % 16 == 0);
212 if (nbytes % 32) {
213 KASSERT(nbytes % 32 == 16);
218 nbytes -= 16;
222 for (; nbytes; nbytes -= 32, in += 32, out += 32) {
240 uint8_t out[static 16], size_t nbytes, uint8_t tweak[static 16],
245 KASSERT(nbytes);
246 KASSERT(nbytes % 16 == 0);
249 if (nbytes % 32) {
250 KASSERT(nbytes % 32 == 16);
255 nbytes -= 16;
259 for (; nbytes; nbytes -= 32, in += 32, out += 32) {
277 size_t nbytes, uint8_t auth0[static 16], uint32_t nrounds)
281 KASSERT(nbytes);
282 KASSERT(nbytes % 16 == 0);
285 for (; nbytes; nbytes -= 16, in += 16)
292 uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32],
300 KASSERT(nbytes);
301 KASSERT(nbytes % 16 == 0);
306 for (; nbytes; nbytes -= 16, in += 16, out += 16) {
324 uint8_t out[static 16], size_t nbytes, uint8_t authctr[static 32],
332 KASSERT(nbytes);
333 KASSERT(nbytes % 16 == 0);
348 if ((nbytes -= 16) == 0)