Lines Matching defs:alen
108 const unsigned char *aad, size_t alen)
113 if (alen == 0)
119 if (alen < (0x10000 - 0x100)) {
120 ctx->cmac.c[0] ^= (u8)(alen >> 8);
121 ctx->cmac.c[1] ^= (u8)alen;
123 } else if (sizeof(alen) == 8
124 && alen >= (size_t)1 << (32 % (sizeof(alen) * 8))) {
127 ctx->cmac.c[2] ^= (u8)(alen >> (56 % (sizeof(alen) * 8)));
128 ctx->cmac.c[3] ^= (u8)(alen >> (48 % (sizeof(alen) * 8)));
129 ctx->cmac.c[4] ^= (u8)(alen >> (40 % (sizeof(alen) * 8)));
130 ctx->cmac.c[5] ^= (u8)(alen >> (32 % (sizeof(alen) * 8)));
131 ctx->cmac.c[6] ^= (u8)(alen >> 24);
132 ctx->cmac.c[7] ^= (u8)(alen >> 16);
133 ctx->cmac.c[8] ^= (u8)(alen >> 8);
134 ctx->cmac.c[9] ^= (u8)alen;
139 ctx->cmac.c[2] ^= (u8)(alen >> 24);
140 ctx->cmac.c[3] ^= (u8)(alen >> 16);
141 ctx->cmac.c[4] ^= (u8)(alen >> 8);
142 ctx->cmac.c[5] ^= (u8)alen;
147 for (; i < 16 && alen; ++i, ++aad, --alen)
151 } while (alen);