From 83a6cb03bc9a0f3b9647205da3d1a716d35faab2 Mon Sep 17 00:00:00 2001 From: Arek Kusztal Date: Fri, 8 Feb 2019 12:13:36 +0100 Subject: [PATCH] cryptodev: add result field to mod exp and inv This commit adds result field to be used when modular exponentiation or modular multiplicative inverse operation is used Signed-off-by: Arek Kusztal Acked-by: Shally Verma --- lib/librte_cryptodev/rte_crypto_asym.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/rte_crypto_asym.h index 265559c7a7..5e43620972 100644 --- a/lib/librte_cryptodev/rte_crypto_asym.h +++ b/lib/librte_cryptodev/rte_crypto_asym.h @@ -339,6 +339,16 @@ struct rte_crypto_mod_op_param { * be relatively prime to modulus in corresponding Modular * Multiplicative Inverse rte_crypto_modinv_xform */ + + rte_crypto_param result; + /**< + * Pointer to the result of modular exponentiation/multiplicative inverse + * data in octet-string network byte order format. + * + * This field shall be big enough to hold the result of Modular + * Exponentiation or Modular Multplicative Inverse + * (bigger or equal to length of modulus) + */ }; /** -- 2.20.1