Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH v8 0/3] crypto: caam - add support for RSA algorithm
@ 2016-06-15 14:52 Tudor Ambarus
  2016-06-15 14:52 ` [PATCH v8 1/3] crypto: scatterwak - Add scatterwalk_sg_copychunks Tudor Ambarus
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tudor Ambarus @ 2016-06-15 14:52 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, horia.geanta, Tudor Ambarus

Changes in v8:
- store raw keys on stack
- use d_sz instead of n_sz for RSA private exponent
- add caam_read_raw_data function for reading RSA modulus raw byte stream
  as a positive integer. The function updates the n_sz byte length too.
  Needed because the decryption descriptor uses the RSA modulus length as
  decryption output length. The accelerator will try to write n_sz bytes
  to output SGT, resulting a SGT overfflow if RSA modulus contains leading
  zeros.
- add caam_rsa_check_key_length function. Maximum supported modulus size is
  4096 bits. Fallback mechanism to be added after removing
  the (same) key length constraint from software implementation.

Changes in v7:
- sync with ASN.1 parser

Changes in v6:
- write descriptor PDB fields with inline append
- move Protocol Data Block (pdb) structures to pdb.h
- move setting of PDB fields in new functions
- unmap sec4_sg_dma on done callback
- remove redundant clean code on error path
- fix doc typos

Changes in v5:
- sync with ASN.1 parser

Changes in v4:
- sync with ASN.1 parser

Changes in v3:
- sync with ASN.1 parser

Changes in v2:
- fix memory leaks on error path
- rename struct akcipher_alg rsa to caam_rsa

Tudor Ambarus (3):
  crypto: scatterwak - Add scatterwalk_sg_copychunks
  crypto: scatterwalk - export scatterwalk_pagedone
  crypto: caam - add support for RSA algorithm

 crypto/scatterwalk.c              |  31 +-
 drivers/crypto/caam/Kconfig       |  12 +
 drivers/crypto/caam/Makefile      |   4 +
 drivers/crypto/caam/caampkc.c     | 693 ++++++++++++++++++++++++++++++++++++++
 drivers/crypto/caam/caampkc.h     |  70 ++++
 drivers/crypto/caam/compat.h      |   3 +
 drivers/crypto/caam/desc.h        |   2 +
 drivers/crypto/caam/desc_constr.h |   7 +
 drivers/crypto/caam/pdb.h         |  51 ++-
 drivers/crypto/caam/pkc_desc.c    |  36 ++
 include/crypto/scatterwalk.h      |   4 +
 11 files changed, 910 insertions(+), 3 deletions(-)
 create mode 100644 drivers/crypto/caam/caampkc.c
 create mode 100644 drivers/crypto/caam/caampkc.h
 create mode 100644 drivers/crypto/caam/pkc_desc.c

-- 
1.8.3.1

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

end of thread, other threads:[~2016-06-20 10:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-15 14:52 [PATCH v8 0/3] crypto: caam - add support for RSA algorithm Tudor Ambarus
2016-06-15 14:52 ` [PATCH v8 1/3] crypto: scatterwak - Add scatterwalk_sg_copychunks Tudor Ambarus
2016-06-20 10:54   ` Herbert Xu
2016-06-15 14:52 ` [PATCH v8 2/3] crypto: scatterwalk - export scatterwalk_pagedone Tudor Ambarus
2016-06-15 14:52 ` [PATCH v8 3/3] crypto: caam - add support for RSA algorithm Tudor Ambarus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox