Lines Matching refs:gctx

263 	struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx;  in gcm_hash_len()  local
267 lengths.b = cpu_to_be64(gctx->cryptlen * 8); in gcm_hash_len()
293 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in __gcm_hash_final_done() local
298 gctx->complete(req, err); in __gcm_hash_final_done()
352 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in __gcm_hash_crypt_done() local
356 remain = gcm_remain(gctx->cryptlen); in __gcm_hash_crypt_done()
377 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in __gcm_hash_assoc_remain_done() local
381 if (!err && gctx->cryptlen) { in __gcm_hash_assoc_remain_done()
382 remain = gcm_remain(gctx->cryptlen); in __gcm_hash_assoc_remain_done()
386 gctx->src, gctx->cryptlen); in __gcm_hash_assoc_remain_done()
462 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_hash() local
486 remain = gcm_remain(gctx->cryptlen); in gcm_hash()
488 err = gcm_hash_update(req, pctx, compl, gctx->src, gctx->cryptlen); in gcm_hash()
549 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in crypto_gcm_encrypt() local
556 gctx->src = req->dst; in crypto_gcm_encrypt()
557 gctx->cryptlen = req->cryptlen; in crypto_gcm_encrypt()
558 gctx->complete = gcm_enc_hash_done; in crypto_gcm_encrypt()
603 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in gcm_dec_hash_done() local
608 crypto_gcm_init_crypt(abreq, req, gctx->cryptlen); in gcm_dec_hash_done()
624 struct crypto_gcm_ghash_ctx *gctx = &pctx->ghash_ctx; in crypto_gcm_decrypt() local
633 gctx->src = req->src; in crypto_gcm_decrypt()
634 gctx->cryptlen = cryptlen; in crypto_gcm_decrypt()
635 gctx->complete = gcm_dec_hash_done; in crypto_gcm_decrypt()