diff mbox series

[35/40] common/cpt: reduce rsa struct to only necessary fields

Message ID 20220520055445.40063-36-arkadiuszx.kusztal@intel.com (mailing list archive)
State Changes Requested
Delegated to: akhil goyal
Headers show
Series cryptodev: rsa, dh, ecdh changes | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Kusztal, ArkadiuszX May 20, 2022, 5:54 a.m. UTC
- reduced rsa struct to only necessary fields.
This commit reflects changes to the asymmetric crypto API.

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
---
 drivers/common/cpt/cpt_ucode_asym.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/common/cpt/cpt_ucode_asym.h b/drivers/common/cpt/cpt_ucode_asym.h
index 1105a0c125..dafae61f6f 100644
--- a/drivers/common/cpt/cpt_ucode_asym.h
+++ b/drivers/common/cpt/cpt_ucode_asym.h
@@ -463,16 +463,16 @@  cpt_enqueue_rsa_op(struct rte_crypto_op *op,
 
 	switch (rsa->op_type) {
 	case RTE_CRYPTO_ASYM_OP_VERIFY:
-		cpt_rsa_prep(params, &sess->rsa_ctx, &rsa->sign);
+		cpt_rsa_prep(params, &sess->rsa_ctx, &rsa->input);
 		break;
 	case RTE_CRYPTO_ASYM_OP_ENCRYPT:
-		cpt_rsa_prep(params, &sess->rsa_ctx, &rsa->message);
+		cpt_rsa_prep(params, &sess->rsa_ctx, &rsa->input);
 		break;
 	case RTE_CRYPTO_ASYM_OP_SIGN:
-		cpt_rsa_crt_prep(params, &sess->rsa_ctx, &rsa->message);
+		cpt_rsa_crt_prep(params, &sess->rsa_ctx, &rsa->input);
 		break;
 	case RTE_CRYPTO_ASYM_OP_DECRYPT:
-		cpt_rsa_crt_prep(params, &sess->rsa_ctx, &rsa->cipher);
+		cpt_rsa_crt_prep(params, &sess->rsa_ctx, &rsa->input);
 		break;
 	default:
 		op->status = RTE_CRYPTO_OP_STATUS_INVALID_ARGS;