linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] crypto: akcipher - Changes to asymmetric key API
@ 2015-09-22 16:33 Tadeusz Struk
  2015-09-22 16:33 ` [PATCH v3 1/2] lib/scatterlist: Add sg_len helper Tadeusz Struk
  2015-09-22 16:34 ` [PATCH v3 2/2] crypto: akcipher - Changes to asymmetric key API Tadeusz Struk
  0 siblings, 2 replies; 7+ messages in thread
From: Tadeusz Struk @ 2015-09-22 16:33 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, qat-linux, tadeusz.struk

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 sg_len helper that returns the full length
of an sgl.
Second patch implements the API changes 

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/scatterlist: Add sg_len helper
      crypto: akcipher - Changes to asymmetric key API


 crypto/Makefile                                   |    9 +
 crypto/rsa.c                                      |  188 ++++++++++++++----
 crypto/rsa_helper.c                               |   42 +++-
 crypto/rsakey.asn1                                |    5 
 crypto/rsaprivkey.asn1                            |   11 +
 crypto/rsapubkey.asn1                             |    4 
 crypto/testmgr.c                                  |   40 ++--
 crypto/testmgr.h                                  |   36 +++
 drivers/crypto/qat/qat_common/Makefile            |   12 +
 drivers/crypto/qat/qat_common/qat_asym_algs.c     |  225 +++++++++++++++------
 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                         |   99 ++++++---
 include/crypto/internal/rsa.h                     |    7 -
 include/linux/scatterlist.h                       |    1 
 lib/scatterlist.c                                 |   18 ++
 17 files changed, 538 insertions(+), 179 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

--

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-01 15:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22 16:33 [PATCH v3 0/2] crypto: akcipher - Changes to asymmetric key API Tadeusz Struk
2015-09-22 16:33 ` [PATCH v3 1/2] lib/scatterlist: Add sg_len helper Tadeusz Struk
2015-09-22 16:34 ` [PATCH v3 2/2] crypto: akcipher - Changes to asymmetric key API Tadeusz Struk
2015-10-01 13:45   ` Herbert Xu
2015-10-01 14:52     ` Tadeusz Struk
2015-10-01 15:15       ` Herbert Xu
2015-10-01 15:17         ` Tadeusz Struk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).