crypto: qat - add RSA support to qat driver
Get series with b4
b4 am 20150715222821.22719.34149.stgit@tstruk-mobl1Versions newest first · linked by author and title
- v3 Latest4 patches 1 replyIn review
- v23 patches 6 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | crypto: qat - add support for MMP FWdrivers/ drivers/ drivers/ +3 more | +24 | 0 replies | |
| 2/4 | crypto: qat - add MMP FW support to accel enginedrivers/ drivers/ drivers/ +1 more | +42 | 0 replies | |
| 3/4 | crypto: qat - Add support for RSA algorithmdrivers/ drivers/ drivers/ +10 more | +779 | 0 replies | |
| 4/4 | crypto: rsa - limit supported key lengthscrypto/ | +25 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
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
--