Lines Matching refs:aead_rctx

396 	struct nitrox_aead_rctx *aead_rctx = &rctx->base;  in nitrox_rfc4106_set_aead_rctx_sglist()  local
418 aead_rctx->src = rctx->src; in nitrox_rfc4106_set_aead_rctx_sglist()
419 aead_rctx->dst = (areq->src == areq->dst) ? rctx->src : rctx->dst; in nitrox_rfc4106_set_aead_rctx_sglist()
445 struct nitrox_aead_rctx *aead_rctx = &rctx->base; in nitrox_rfc4106_enc() local
446 struct se_crypto_request *creq = &aead_rctx->nkreq.creq; in nitrox_rfc4106_enc()
449 aead_rctx->cryptlen = areq->cryptlen; in nitrox_rfc4106_enc()
450 aead_rctx->assoclen = areq->assoclen - GCM_RFC4106_IV_SIZE; in nitrox_rfc4106_enc()
451 aead_rctx->srclen = aead_rctx->assoclen + aead_rctx->cryptlen; in nitrox_rfc4106_enc()
452 aead_rctx->dstlen = aead_rctx->srclen + aead->authsize; in nitrox_rfc4106_enc()
453 aead_rctx->iv = areq->iv; in nitrox_rfc4106_enc()
454 aead_rctx->ivsize = GCM_RFC4106_IV_SIZE; in nitrox_rfc4106_enc()
455 aead_rctx->flags = areq->base.flags; in nitrox_rfc4106_enc()
456 aead_rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_rfc4106_enc()
457 aead_rctx->ctrl_arg = ENCRYPT; in nitrox_rfc4106_enc()
463 ret = nitrox_set_creq(aead_rctx); in nitrox_rfc4106_enc()
477 struct nitrox_aead_rctx *aead_rctx = &rctx->base; in nitrox_rfc4106_dec() local
478 struct se_crypto_request *creq = &aead_rctx->nkreq.creq; in nitrox_rfc4106_dec()
481 aead_rctx->cryptlen = areq->cryptlen - aead->authsize; in nitrox_rfc4106_dec()
482 aead_rctx->assoclen = areq->assoclen - GCM_RFC4106_IV_SIZE; in nitrox_rfc4106_dec()
483 aead_rctx->srclen = in nitrox_rfc4106_dec()
485 aead_rctx->dstlen = aead_rctx->srclen - aead->authsize; in nitrox_rfc4106_dec()
486 aead_rctx->iv = areq->iv; in nitrox_rfc4106_dec()
487 aead_rctx->ivsize = GCM_RFC4106_IV_SIZE; in nitrox_rfc4106_dec()
488 aead_rctx->flags = areq->base.flags; in nitrox_rfc4106_dec()
489 aead_rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_rfc4106_dec()
490 aead_rctx->ctrl_arg = DECRYPT; in nitrox_rfc4106_dec()
496 ret = nitrox_set_creq(aead_rctx); in nitrox_rfc4106_dec()