Lines Matching refs:aad_len
118 ctx->aad_len = 0; in aes_gcm_siv_aad()
121 to_alloc = UP16(ctx->aad_len + len); in aes_gcm_siv_aad()
130 memcpy(&ctx->aad[ctx->aad_len], aad, len); in aes_gcm_siv_aad()
131 ctx->aad_len += len; in aes_gcm_siv_aad()
132 if (to_alloc > ctx->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()
169 len_blk[0] = (uint64_t)ctx->aad_len * 8; in aes_gcm_siv_encrypt()
172 len_blk[0] = GSWAP8((uint64_t)ctx->aad_len * 8); 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()
235 len_blk[0] = (uint64_t)ctx->aad_len * 8; in aes_gcm_siv_decrypt()
238 len_blk[0] = GSWAP8((uint64_t)ctx->aad_len * 8); 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()