Lines Matching refs:gctx
227 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_len() local
231 lengths.b = cpu_to_be64(gctx->cryptlen * 8); in gcm_hash_len()
244 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_len_continue() local
246 return gctx->complete(req, flags); in gcm_hash_len_continue()
288 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_crypt_continue() local
291 remain = gcm_remain(gctx->cryptlen); in gcm_hash_crypt_continue()
318 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_assoc_remain_continue() local
320 if (gctx->cryptlen) in gcm_hash_assoc_remain_continue()
322 gctx->src, gctx->cryptlen, flags) ?: in gcm_hash_assoc_remain_continue()
425 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_encrypt_continue() local
427 gctx->src = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in gcm_encrypt_continue()
428 gctx->cryptlen = req->cryptlen; in gcm_encrypt_continue()
429 gctx->complete = gcm_enc_copy_hash; in gcm_encrypt_continue()
492 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_dec_hash_continue() local
494 crypto_gcm_init_crypt(req, gctx->cryptlen); in gcm_dec_hash_continue()
503 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in crypto_gcm_decrypt() local
512 gctx->src = sg_next(pctx->src); in crypto_gcm_decrypt()
513 gctx->cryptlen = cryptlen; in crypto_gcm_decrypt()
514 gctx->complete = gcm_dec_hash_continue; in crypto_gcm_decrypt()