Re: [PATCH v4 00/14] fixes for kpp and akcipher

2017-06-09 Thread Herbert Xu
On Thu, May 25, 2017 at 10:18:02AM +0300, Tudor Ambarus wrote:
> Hi,
> 
> These are various fixes that I made while reading kpp and akcipher
> implementations.
> 
> Changes in v4:
>  - assume key is already set when calling crypto_akcipher/kpp_maxsize()

All applied, with patch 4/14 taken from v5.  Thanks.
-- 
Email: Herbert Xu 
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


[PATCH v4 00/14] fixes for kpp and akcipher

2017-05-25 Thread Tudor Ambarus
Hi,

These are various fixes that I made while reading kpp and akcipher
implementations.

Changes in v4:
 - assume key is already set when calling crypto_akcipher/kpp_maxsize()

v3 can be found at:
http://www.mail-archive.com/linux-crypto@vger.kernel.org/msg25312.html

Tudor Ambarus (14):
  crypto: kpp, (ec)dh - fix typos
  crypto: ecc - remove unused function arguments
  crypto: ecc - remove unnecessary casts
  crypto: ecc - don't be selfish on pubkeys
  crypto: dh - fix memleak in setkey
  crypto: kpp: maxsize() - assume key is already set
  crypto: dh - comply with crypto_kpp_maxsize()
  crypto: ecdh - comply with crypto_kpp_maxsize()
  crypto: qat - comply with crypto_kpp_maxsize()
  crypto: akcipher: maxsize() - assume key is already set
  crypto: rsa - comply with crypto_akcipher_maxsize()
  crypto: caampkc - comply with crypto_akcipher_maxsize()
  crypto: qat - comply with crypto_akcipher_maxsize()
  crypto: pkcs1pad - comply with crypto_akcipher_maxsize()

 crypto/dh.c   |  9 +---
 crypto/dh_helper.c|  4 ++--
 crypto/ecc.c  | 32 ---
 crypto/ecc.h  | 25 +
 crypto/ecdh.c | 25 +
 crypto/ecdh_helper.c  |  4 ++--
 crypto/rsa-pkcs1pad.c | 10 ++---
 crypto/rsa.c  |  4 ++--
 drivers/crypto/caam/caampkc.c |  5 ++---
 drivers/crypto/qat/qat_common/qat_asym_algs.c |  8 +++
 include/crypto/akcipher.h | 11 -
 include/crypto/dh.h   |  4 ++--
 include/crypto/ecdh.h |  4 ++--
 include/crypto/kpp.h  | 15 +++--
 14 files changed, 73 insertions(+), 87 deletions(-)

-- 
2.7.4