linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] crypto: KEYS: convert public key to akcipher api
@ 2015-12-13  2:26 Tadeusz Struk
  2015-12-13  2:26 ` [PATCH v2 1/2] crypto: KEYS: convert public key to the " Tadeusz Struk
  2015-12-13  2:26 ` [PATCH v2 2/2] integrity: convert digsig to " Tadeusz Struk
  0 siblings, 2 replies; 12+ messages in thread
From: Tadeusz Struk @ 2015-12-13  2:26 UTC (permalink / raw)
  To: herbert
  Cc: tadeusz.struk, linux-kernel, dhowells, linux-security-module,
	linux-crypto, zohar

This patch set converts the module verification and digital signature
code to the new akcipher API.
RSA implementation has been removed from crypto/asymmetric_keys and the
new API is used for cryptographic primitives.
There is no need for MPI above the akcipher API anymore.
Modules can be verified with software as well as HW RSA implementations.

Patches generated against cryptodev-2.6

Changes in v2:
- Fix the whey public_key_signature is setup. The pointer s needs to
  point to the signature instread of the signature_v2_hdr.  
- Select CRYPTO_RSA when INTEGRITY_ASYMMETRIC_KEYS is selected.

---

Tadeusz Struk (2):
      crypto: KEYS: convert public key to the akcipher api
      integrity: convert digsig to akcipher api

 crypto/asymmetric_keys/Kconfig            |    2 
 crypto/asymmetric_keys/Makefile           |    7 -
 crypto/asymmetric_keys/pkcs7_parser.c     |   12 +-
 crypto/asymmetric_keys/pkcs7_trust.c      |    2 
 crypto/asymmetric_keys/pkcs7_verify.c     |    2 
 crypto/asymmetric_keys/public_key.c       |   64 +++------
 crypto/asymmetric_keys/public_key.h       |   36 -----
 crypto/asymmetric_keys/rsa.c              |  213 +++++++++++------------------
 crypto/asymmetric_keys/x509_cert_parser.c |   37 +----
 crypto/asymmetric_keys/x509_public_key.c  |   17 +-
 crypto/asymmetric_keys/x509_rsakey.asn1   |    4 -
 include/crypto/public_key.h               |   49 ++-----
 security/integrity/Kconfig                |    1 
 security/integrity/digsig_asymmetric.c    |   10 -
 14 files changed, 140 insertions(+), 316 deletions(-)
 delete mode 100644 crypto/asymmetric_keys/public_key.h
 delete mode 100644 crypto/asymmetric_keys/x509_rsakey.asn1

--
TS

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

end of thread, other threads:[~2015-12-23  4:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-13  2:26 [PATCH v2 0/2] crypto: KEYS: convert public key to akcipher api Tadeusz Struk
2015-12-13  2:26 ` [PATCH v2 1/2] crypto: KEYS: convert public key to the " Tadeusz Struk
2015-12-19 23:49   ` kbuild test robot
2015-12-20 16:53     ` Tadeusz Struk
2015-12-21 20:59     ` Tadeusz Struk
2015-12-22 12:09       ` Herbert Xu
2015-12-22 14:23         ` Tadeusz Struk
2015-12-23  2:33           ` Herbert Xu
2015-12-23  4:57             ` Tadeusz Struk
2015-12-13  2:26 ` [PATCH v2 2/2] integrity: convert digsig to " Tadeusz Struk
2015-12-14 13:24   ` Mimi Zohar
2015-12-14 14:59     ` 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).