adding op-type crt sign and decrypt
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | lib/cryptodev: add crt sign and decrypt opslib/ | +8 | 0 replies | |
| 2/3 | crypto/openssl: update op-type mask with crt opsdrivers/ | +3 | 0 replies | |
| 3/3 | test/crypto: check for rsa capa for op-typetest/ | +47 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] adding op-type crt sign and decrypt
Some PMDs can only support RSA private key operations using CRT keys (quintuple) only. Thus it is required to add in PMD RSA xform capability which key type is supported to perform sign and decrypt ops.
Thus add an another op_type RTE_CRYPTO_OP_TYPE_SIGN_CRT and RTE_CRYPTO_OP_TYPE_DECRYPT_CRT, which would mean perform an private key op using CRT keys (quintuple) only.
PMD would reflect its capability to support these operations using its op_type mask. App should query RSA xform capability API to check if specific op_type is supported, thus call operation with relevant key type.
Another proposal is, it is not known if non-crt keys is used at all to perform otherwise naturally slow RSA private keys operations. So, it is also possible to deprecate RSA_KEY_TYPE_EXPONENT altogether and just use quintuple key type for private key operations. In that case, there is no need to add another SIGN/DECRYPT_CRT variant, current SIGN and DECRYPT operation default to using quintuple RSA keys.
Ayuj Verma (3):
lib/cryptodev: add crt sign and decrypt ops crypto/openssl: update op-type mask with crt ops test/crypto: check for rsa capa for op-type
drivers/crypto/openssl/rte_openssl_pmd_ops.c | 4 +- lib/librte_cryptodev/rte_crypto_asym.h | 8 ++++ test/test/test_cryptodev_asym.c | 47 ++++++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-)
Signature · 1 line
2.20.0