Skip to content

crypto: qat - add RSA support to qat driver

Tadeusz Struk linux-crypto 3 versions – In review

Get series with b4
b4 am 20150715222821.22719.34149.stgit@tstruk-mobl1

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v23 patches 6 repliesSuperseded
  3. v13 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- remove sw fallback and add key size limitats to rsa generic instead.
- add rsa key parser to qat to avoid data conversion to and from MPI. This also removes qat dependency on rsa-generic.
- add extra space in qat_rsa_req for alignment.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto: qat - add support for MMP FWdrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_common_drv.h drivers/crypto/qat/qat_common/qat_hal.c +3 more+24 -260 replies
2/4crypto: qat - add MMP FW support to accel enginedrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_accel_engine.c drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c +1 more+42 -50 replies
3/4crypto: qat - Add support for RSA algorithmdrivers/crypto/qat/Kconfig drivers/crypto/qat/qat_common/.gitignore drivers/crypto/qat/qat_common/Makefile +10 more+779 -390 replies
4/4crypto: rsa - limit supported key lengthscrypto/rsa.c+25 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] crypto: qat - add RSA support to qat driver

This series adds RSA support to the qat driver.
First patch adds the logic in FW loader to load the Modular Math Processor(MMP) firmware to the device's internal memory.
Second patch adds logic to load MMP firmware from disk.
Third patch adds the actual RSA implementation.
It also contains minor cleanup - namely removes unused TRNG rings. Fourth patch adds limitation for supported rsa key lengths to rsa-generic.

Once this is accepted updated version of qat_895xcc.bin firmware and the new mmp firmware will follow.

changes in v3:
- remove sw fallback and add key size limitats to rsa generic instead.
- add rsa key parser to qat to avoid data conversion to and from MPI. This also removes qat dependency on rsa-generic.
- add extra space in qat_rsa_req for alignment.

changes in v2:
- add fallback to software for unsupported key lengths.
---

Pingchao Yang (1):
crypto: qat - add support for MMP FW

Tadeusz Struk (3):
crypto: qat - add MMP FW support to accel engine
crypto: qat - Add support for RSA algorithm
crypto: rsa - limit supported key lengths

 crypto/rsa.c                                       |   27 +
 drivers/crypto/qat/Kconfig                         |    2 
 drivers/crypto/qat/qat_common/.gitignore           |    1 
 drivers/crypto/qat/qat_common/Makefile             |    5 
 drivers/crypto/qat/qat_common/adf_accel_devices.h  |    3 
 drivers/crypto/qat/qat_common/adf_accel_engine.c   |   42 +
 drivers/crypto/qat/qat_common/adf_common_drv.h     |   12 
 drivers/crypto/qat/qat_common/adf_init.c           |    4 
 drivers/crypto/qat/qat_common/icp_qat_fw.h         |    2 
 drivers/crypto/qat/qat_common/icp_qat_fw_pke.h     |  112 ++++
 drivers/crypto/qat/qat_common/qat_algs.c           |    5 
 drivers/crypto/qat/qat_common/qat_asym_algs.c      |  639 ++++++++++++++++++++
 drivers/crypto/qat/qat_common/qat_crypto.c         |   19 -
 drivers/crypto/qat/qat_common/qat_crypto.h         |    2 
 drivers/crypto/qat/qat_common/qat_hal.c            |   13 
 drivers/crypto/qat/qat_common/qat_rsakey.asn1      |    5 
 drivers/crypto/qat/qat_common/qat_uclo.c           |   27 -
 .../crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c |    7 
 .../crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.h |    3 
 drivers/crypto/qat/qat_dh895xcc/adf_drv.c          |   12 
 20 files changed, 871 insertions(+), 71 deletions(-)
 create mode 100644 drivers/crypto/qat/qat_common/.gitignore
 create mode 100644 drivers/crypto/qat/qat_common/icp_qat_fw_pke.h
 create mode 100644 drivers/crypto/qat/qat_common/qat_asym_algs.c
 create mode 100644 drivers/crypto/qat/qat_common/qat_rsakey.asn1

--