Lines Matching refs:gctx
270 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_len() local
274 lengths.b = cpu_to_be64(gctx->cryptlen * 8); in gcm_hash_len()
287 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_len_continue() local
289 return gctx->complete(req, flags); in gcm_hash_len_continue()
332 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_crypt_continue() local
335 remain = gcm_remain(gctx->cryptlen); in gcm_hash_crypt_continue()
362 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_assoc_remain_continue() local
364 if (gctx->cryptlen) in gcm_hash_assoc_remain_continue()
366 gctx->src, gctx->cryptlen, flags) ?: in gcm_hash_assoc_remain_continue()
470 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_encrypt_continue() local
472 gctx->src = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in gcm_encrypt_continue()
473 gctx->cryptlen = req->cryptlen; in gcm_encrypt_continue()
474 gctx->complete = gcm_enc_copy_hash; in gcm_encrypt_continue()
537 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_dec_hash_continue() local
539 crypto_gcm_init_crypt(req, gctx->cryptlen); in gcm_dec_hash_continue()
548 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in crypto_gcm_decrypt() local
557 gctx->src = sg_next(pctx->src); in crypto_gcm_decrypt()
558 gctx->cryptlen = cryptlen; in crypto_gcm_decrypt()
559 gctx->complete = gcm_dec_hash_continue; in crypto_gcm_decrypt()