Lines Matching refs:ghash
23 asmlinkage void pmull_ghash_update(const u8 *ghash_table, u8 *ghash,
27 unsigned int nbytes, u8 *ghash,
31 unsigned int nbytes, u8 *ghash,
73 static void gcm_calculate_auth_mac(struct aead_request *req, u8 ghash[])
110 pmull_ghash_update(ctx->ghash_table, ghash,
116 pmull_ghash_update(ctx->ghash_table, ghash,
133 pmull_ghash_update(ctx->ghash_table, ghash, buffer, 1);
138 u8 ghash[], int err,
141 unsigned int nbytes, u8 *ghash,
149 memset(ghash, 0, SM4_BLOCK_SIZE);
160 gcm_calculate_auth_mac(req, ghash);
169 walk->nbytes, ghash,
179 walk->nbytes - tail, ghash,
190 walk->nbytes, ghash, ctx->ghash_table,
201 u8 __aligned(8) ghash[SM4_BLOCK_SIZE];
206 err = gcm_crypt(req, &walk, ghash, err, sm4_ce_pmull_gcm_enc);
211 scatterwalk_map_and_copy(ghash, req->dst, req->assoclen + req->cryptlen,
221 u8 __aligned(8) ghash[SM4_BLOCK_SIZE];
227 err = gcm_crypt(req, &walk, ghash, err, sm4_ce_pmull_gcm_dec);
236 if (crypto_memneq(authtag, ghash, authsize))