Lines Matching defs:ghash
57 * Whether to use the optimized openssl gcm and ghash implementations.
216 uint8_t *ghash, *macp = NULL;
225 ghash = (uint8_t *)ctx->gcm_ghash;
257 GHASH(ctx, macp, ghash, gops);
264 GHASH(ctx, ctx->gcm_len_a_len_c, ghash, gops);
267 xor_block((uint8_t *)ctx->gcm_J0, ghash);
276 rv = crypto_put_output_data(ghash, out, ctx->gcm_tag_len);
383 uint8_t *ghash;
394 ghash = (uint8_t *)ctx->gcm_ghash;
412 GHASH(ctx, blockp, ghash, gops);
435 GHASH(ctx, ctx->gcm_len_a_len_c, ghash, gops);
438 xor_block((uint8_t *)ctx->gcm_J0, ghash);
441 if (memcmp(&ctx->gcm_pt_buf[pt_len], ghash, ctx->gcm_tag_len)) {
491 uint8_t *datap, *ghash;
495 ghash = (uint8_t *)ctx->gcm_ghash;
518 GHASH(ctx, datap, ghash, gops);
538 uint8_t *ghash, *datap, *authp;
551 ghash = (uint8_t *)ctx->gcm_ghash;
553 memset(ghash, 0, block_size);
581 GHASH(ctx, datap, ghash, gops);
1020 extern void ASMABI gcm_ghash_avx(uint64_t ghash[2], const uint64_t *Htable,
1096 uint64_t *ghash = ctx->gcm_ghash;
1161 datap, ct_buf, chunk_size, key, cb, ghash);
1184 done = aesni_gcm_encrypt(datap, ct_buf, bleft, key, cb, ghash);
1240 uint8_t *ghash = (uint8_t *)ctx->gcm_ghash;
1277 gcm_xor_avx((uint8_t *)J0, ghash);
1289 rv = crypto_put_output_data(ghash, out, ctx->gcm_tag_len);
1314 uint64_t *ghash = ctx->gcm_ghash;
1327 (const void *)key, ctx->gcm_cb, ghash);
1339 (const void *)key, ctx->gcm_cb, ghash);
1389 gcm_xor_avx((uint8_t *)ctx->gcm_J0, (uint8_t *)ghash);
1396 if (memcmp(&ctx->gcm_pt_buf[pt_len], ghash, ctx->gcm_tag_len)) {