Lines Matching refs:aad
108 const unsigned char *aad, size_t len) in aes_gcm_siv_aad() argument
116 OPENSSL_free(ctx->aad); in aes_gcm_siv_aad()
117 ctx->aad = NULL; in aes_gcm_siv_aad()
126 ptr = OPENSSL_realloc(ctx->aad, to_alloc); in aes_gcm_siv_aad()
129 ctx->aad = ptr; in aes_gcm_siv_aad()
130 memcpy(&ctx->aad[ctx->aad_len], aad, len); in aes_gcm_siv_aad()
133 memset(&ctx->aad[ctx->aad_len], 0, to_alloc - ctx->aad_len); in aes_gcm_siv_aad()
178 if (ctx->aad != NULL) { in aes_gcm_siv_encrypt()
180 ossl_polyval_ghash_hash(ctx->Htable, S_s, ctx->aad, UP16(ctx->aad_len)); in aes_gcm_siv_encrypt()
243 if (ctx->aad != NULL) { in aes_gcm_siv_decrypt()
245 ossl_polyval_ghash_hash(ctx->Htable, S_s, ctx->aad, UP16(ctx->aad_len)); in aes_gcm_siv_decrypt()