Lines Matching refs:gctx
233 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_len() local
237 lengths.b = cpu_to_be64(gctx->cryptlen * 8); in gcm_hash_len()
250 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_len_continue() local
252 return gctx->complete(req, flags); in gcm_hash_len_continue()
295 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_crypt_continue() local
298 remain = gcm_remain(gctx->cryptlen); in gcm_hash_crypt_continue()
325 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash_assoc_remain_continue() local
327 if (gctx->cryptlen) in gcm_hash_assoc_remain_continue()
329 gctx->src, gctx->cryptlen, flags) ?: in gcm_hash_assoc_remain_continue()
433 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_encrypt_continue() local
435 gctx->src = sg_next(req->src == req->dst ? pctx->src : pctx->dst); in gcm_encrypt_continue()
436 gctx->cryptlen = req->cryptlen; in gcm_encrypt_continue()
437 gctx->complete = gcm_enc_copy_hash; in gcm_encrypt_continue()
500 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_dec_hash_continue() local
502 crypto_gcm_init_crypt(req, gctx->cryptlen); in gcm_dec_hash_continue()
511 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in crypto_gcm_decrypt() local
520 gctx->src = sg_next(pctx->src); in crypto_gcm_decrypt()
521 gctx->cryptlen = cryptlen; in crypto_gcm_decrypt()
522 gctx->complete = gcm_dec_hash_continue; in crypto_gcm_decrypt()