Lines Matching defs:alen
69 const unsigned char *aad, size_t alen)
74 if (alen == 0)
80 if (alen < (0x10000 - 0x100)) {
81 ctx->cmac.c[0] ^= (u8)(alen >> 8);
82 ctx->cmac.c[1] ^= (u8)alen;
84 } else if (sizeof(alen) == 8
85 && alen >= (size_t)1 << (32 % (sizeof(alen) * 8))) {
88 ctx->cmac.c[2] ^= (u8)(alen >> (56 % (sizeof(alen) * 8)));
89 ctx->cmac.c[3] ^= (u8)(alen >> (48 % (sizeof(alen) * 8)));
90 ctx->cmac.c[4] ^= (u8)(alen >> (40 % (sizeof(alen) * 8)));
91 ctx->cmac.c[5] ^= (u8)(alen >> (32 % (sizeof(alen) * 8)));
92 ctx->cmac.c[6] ^= (u8)(alen >> 24);
93 ctx->cmac.c[7] ^= (u8)(alen >> 16);
94 ctx->cmac.c[8] ^= (u8)(alen >> 8);
95 ctx->cmac.c[9] ^= (u8)alen;
100 ctx->cmac.c[2] ^= (u8)(alen >> 24);
101 ctx->cmac.c[3] ^= (u8)(alen >> 16);
102 ctx->cmac.c[4] ^= (u8)(alen >> 8);
103 ctx->cmac.c[5] ^= (u8)alen;
108 for (; i < 16 && alen; ++i, ++aad, --alen)
112 } while (alen);