Lines Matching refs:alen
49 const unsigned char *aad, size_t alen)
55 if (!alen)
63 if (alen < ((1 << 16) - (1 << 8))) {
64 *(uint16_t *)ptr = alen;
66 } else if (sizeof(alen) == 8
67 && alen >= (size_t)1 << (32 % (sizeof(alen) * 8))) {
69 *(uint64_t *)(ptr + 2) = alen;
73 *(uint32_t *)(ptr + 2) = alen;
77 while (i < 16 && alen) {
80 --alen;
94 rem = alen & 0xf;
95 alen &= ~(size_t)0xf;
96 if (alen) {
97 s390x_kmac(aad, alen, sctx->ccm.s390x.fc, &sctx->ccm.s390x.kmac);
98 sctx->ccm.s390x.blocks += alen >> 4;
99 aad += alen;