Add feature flag to reflect RSA private key
operation support using quintuple (crt) or
exponent type key. if PMD support both,
then it should set both.
App should query cryptodev feature flag to check
if Sign and Decryt with CRT keys or exponent is
supported, thus call operation with relevant
key type.
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
OOP SGL In LB Out =
OOP LB In SGL Out =
OOP LB In LB Out =
+RSA PRIV OP KEY EXP =
+RSA PRIV OP KEY QT =
;
; Supported crypto algorithms of a default crypto driver.
which means that Out-of-place operation is supported,
with linear input and output buffers.
+ - "RSA PRIV OP KEY EXP" feature flag means PMD support RSA private key
+ operation (Sign and Decrypt) using exponent key type only.
+
+ - "RSA PRIV OP KEY QT" feature flag means PMD support RSA private key
+ operation (Sign and Decrypt) using quintuple (crt) type key only.
+
Supported Cipher Algorithms
---------------------------
return "CPU_ARM_CE";
case RTE_CRYPTODEV_FF_SECURITY:
return "SECURITY_PROTOCOL";
+ case RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP:
+ return "RSA_PRIV_OP_KEY_EXP";
+ case RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT:
+ return "RSA_PRIV_OP_KEY_QT";
default:
return NULL;
}
/**< Utilises ARM CPU Cryptographic Extensions */
#define RTE_CRYPTODEV_FF_SECURITY (1ULL << 16)
/**< Support Security Protocol Processing */
+#define RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP (1ULL << 17)
+/**< Support RSA Private Key OP with exponent */
+#define RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT (1ULL << 18)
+/**< Support RSA Private Key OP with CRT (quintuple) Keys */
/**