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