mbox

[v2,00/14] cryptodev: rsa, dh, ecdh changes

Message ID 20220525155324.9288-1-arkadiuszx.kusztal@intel.com (mailing list archive)
Headers

Message

Kusztal, ArkadiuszX May 25, 2022, 3:53 p.m. UTC
This patchset introduces some of changes discussed on mailing list for 22.07 release in cryptodev asym.

Key changes:

- It fixes API for RSA (expescially signature paddings)
- Adds Elliptic-Curve Diffie-Hellman
- Adds Eliiptic-Curve point verification
- Adds RSA missing padding fields
- Adds asym op flags
- Fixes many API comments (like EC curves)
- Clarifies usage of NONE padding for singatures

v2:
- squashed commits
- added capabilities
- implemented sugestions from the mailing list

Arek Kusztal (14):
  cryptodev: redefine ec group enum
  cryptodev: reduce number of comments in asym xform
  cryptodev: separate key exchange operation enum
  cryptodev: remove comment about using ephemeral key in dsa
  cryptodev: clarify usage of private key in dh
  cryptodev: move dh type from xform to dh op
  cryptodev: add elliptic curve diffie hellman
  cryptodev: add public key verify option
  cryptodev: add asym op flags
  cryptodev: clarify usage of rsa padding hash
  cryptodev: move RSA padding into separate struct
  cryptodev: clarify rsa verify with none padding
  cryptodev: add salt length and optional label
  cryptodev: add asym algorithms capabilities

 app/test-crypto-perf/main.c                  |  12 +-
 app/test-eventdev/test_perf_common.c         |   2 +-
 app/test/test_cryptodev_asym.c               | 234 ++++++++++++-----
 app/test/test_event_crypto_adapter.c         |  16 +-
 drivers/common/cpt/cpt_ucode_asym.h          |   4 +-
 drivers/crypto/cnxk/cnxk_ae.h                |   8 +-
 drivers/crypto/octeontx/otx_cryptodev_ops.c  |   4 +-
 drivers/crypto/openssl/rte_openssl_pmd.c     |  17 +-
 drivers/crypto/openssl/rte_openssl_pmd_ops.c | 155 ++++-------
 drivers/crypto/qat/dev/qat_asym_pmd_gen1.c   |  68 ++++-
 drivers/crypto/qat/qat_asym.c                |  12 +-
 lib/cryptodev/rte_crypto_asym.h              | 375 ++++++++++++++++++---------
 lib/cryptodev/rte_cryptodev.c                |  96 ++++++-
 lib/cryptodev/rte_cryptodev.h                |  75 +++++-
 lib/cryptodev/version.map                    |   4 +
 15 files changed, 742 insertions(+), 340 deletions(-)