This patch adds information about format of the message should have before sending it to the signing operation when using RSA algorithm.
Signed-off-by: Arek Kusztal <arkadiuszx.kusz...@intel.com> --- lib/librte_cryptodev/rte_crypto_asym.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/rte_crypto_asym.h index 16c86c9..ad484de 100644 --- a/lib/librte_cryptodev/rte_crypto_asym.h +++ b/lib/librte_cryptodev/rte_crypto_asym.h @@ -408,6 +408,15 @@ struct rte_crypto_rsa_op_param { * When RTE_CRYPTO_ASYM_OP_DECRYPT op_type used length in bytes * of this field needs to be greater or equal to the length of * corresponding RSA key in bytes. + * + * When RTE_CRYPTO_ASYM_OP_SIGN op_type used and following padding + * type: + * - padding PKCS1_5: + * data provided should contain `algorithmIdentifier` in DER encoded + * format concatenated with message digest (as per spec rfc8017 9.2) + * - padding PSS + * data provided should contain message digest of the message + * to be signed */ -- 2.1.0