Skip to content

crypto: akcipher - Changes to asymmetric key API

Tadeusz Struk linux-crypto 5 versions – In review

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

Versions newest first · linked by author and title

  1. v6 Latest2 patches 1 replyIn review
  2. v52 patches 5 repliesSuperseded
  3. v43 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v32 patches4 repliesSuperseded
v22 patches2 repliesSuperseded

Changes in v6 from the cover letter

- changed mpi_write_to_sgl to take and verify the maximum length of bytes to write
- removed include scatterlist.h in akcipher.h
- renamed crypto_akcipher_get_len() to crypto_akcipher_maxsize()

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/mpi: Add mpi sgl helpersinclude/linux/mpi.h lib/mpi/mpicoder.c+200 -00 replies
2/2crypto: akcipher - Changes to asymmetric key APIcrypto/Makefile crypto/rsa.c crypto/rsa_helper.c +12 more+407 -1640 replies

Reviews trailers per patch

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

Read the v6 thread

Cover letter [PATCH v6 0/2] crypto: akcipher - Changes to asymmetric key API

This series updates the asymmetric key API.
The changes include
- setkey function has been split into set_priv_key and set_pub_key.
- akcipher requests takes sgl for src and dst instead of void *.
Users of the API i.e. two existing RSA implementation and test mgr code have been updated accordingly.

First patch adds sgl helpers to mpi library.
Second patch implements the API changes in rsa-generic and rsa-qat

Changes in v6:
- changed mpi_write_to_sgl to take and verify the maximum length of bytes to write
- removed include scatterlist.h in akcipher.h
- renamed crypto_akcipher_get_len() to crypto_akcipher_maxsize()

Changes in v5:
- droped the sg_len patch as it was not needed

Changes in v4:
- add back src_len and dst_len
- add sgl helpers to mpi library
- change rsa-generic implementation to use the new mpi helpers

Changes in v3:
- changed type returned from sg_len from int to unsigned int

Changes in v2:
- dropped patches that checked value returned by crypto_unregister_alg
- flatten patches 4 and 6-8 from v1 into one patch.
---

Tadeusz Struk (2):
lib/mpi: Add mpi sgl helpers
crypto: akcipher - Changes to asymmetric key API

 crypto/Makefile                                   |    9 +
 crypto/rsa.c                                      |   83 +++++---
 crypto/rsa_helper.c                               |   42 +++-
 crypto/rsakey.asn1                                |    5 
 crypto/rsaprivkey.asn1                            |   11 +
 crypto/rsapubkey.asn1                             |    4 
 crypto/testmgr.c                                  |   39 ++--
 crypto/testmgr.h                                  |   36 +++-
 drivers/crypto/qat/qat_common/Makefile            |   12 +
 drivers/crypto/qat/qat_common/qat_asym_algs.c     |  213 ++++++++++++++++-----
 drivers/crypto/qat/qat_common/qat_rsakey.asn1     |    5 
 drivers/crypto/qat/qat_common/qat_rsaprivkey.asn1 |   11 +
 drivers/crypto/qat/qat_common/qat_rsapubkey.asn1  |    4 
 include/crypto/akcipher.h                         |   90 +++++++--
 include/crypto/internal/rsa.h                     |    7 -
 include/linux/mpi.h                               |    4 
 lib/mpi/mpicoder.c                                |  196 +++++++++++++++++++
 17 files changed, 607 insertions(+), 164 deletions(-)
 delete mode 100644 crypto/rsakey.asn1
 create mode 100644 crypto/rsaprivkey.asn1
 create mode 100644 crypto/rsapubkey.asn1
 delete mode 100644 drivers/crypto/qat/qat_common/qat_rsakey.asn1
 create mode 100644 drivers/crypto/qat/qat_common/qat_rsaprivkey.asn1
 create mode 100644 drivers/crypto/qat/qat_common/qat_rsapubkey.asn1

--