Lines Matching defs:aad
1175 static int s390x_aes_gcm_aad(S390X_AES_GCM_CTX *ctx, const unsigned char *aad,
1192 ctx->ares[n] = *aad;
1194 ++aad;
1209 s390x_kma(aad, len, NULL, 0, NULL, ctx->fc, &ctx->kma.param);
1210 aad += len;
1219 ctx->ares[rem] = aad[rem];
1471 /* Save the aad for later use. */
1717 static void s390x_aes_ccm_aad(S390X_AES_CCM_CTX *ctx, const unsigned char *aad,
1746 ctx->aes.ccm.buf.b[i] = *aad;
1747 ++aad;
1765 s390x_kmac(aad, alen, ctx->aes.ccm.fc, &ctx->aes.ccm.kmac_param);
1767 aad += alen;
1771 ctx->aes.ccm.kmac_param.icv.b[i] ^= aad[i];
1902 /* Process aad (sequence number|type|version|length) */
2004 /* Update(): Process aad. */
2084 /* Save the aad for later use. */