Re: [PATCH] crypto: qat - Switch to new rsa_helper functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 30, 2016 at 05:59:07PM +0100, Salvatore Benedetto wrote:
> Drop all asn1 related code in qat and use the new rsa_helper
> functions rsa_parse_[pub|priv]_key for parsing the key
> 
> Signed-off-by: Salvatore Benedetto <salvatore.benedetto@xxxxxxxxx>
> ---
>  crypto/testmgr.c                                  |  1 +
>  drivers/crypto/qat/Kconfig                        |  2 +-
>  drivers/crypto/qat/qat_common/Makefile            | 10 -----
>  drivers/crypto/qat/qat_common/qat_asym_algs.c     | 49 +++++++++--------------
>  drivers/crypto/qat/qat_common/qat_rsaprivkey.asn1 | 11 -----
>  drivers/crypto/qat/qat_common/qat_rsapubkey.asn1  |  4 --
>  6 files changed, 22 insertions(+), 55 deletions(-)
>  delete mode 100644 drivers/crypto/qat/qat_common/qat_rsaprivkey.asn1
>  delete mode 100644 drivers/crypto/qat/qat_common/qat_rsapubkey.asn1
> 
> diff --git a/crypto/testmgr.c b/crypto/testmgr.c
> index 537fdc3..b52a81c 100644
> --- a/crypto/testmgr.c
> +++ b/crypto/testmgr.c
> @@ -1941,6 +1941,7 @@ static int do_test_rsa(struct crypto_akcipher *tfm,
>  	if (err)
>  		goto free_req;
>  
> +	err = -ENOMEM;
>  	out_len_max = crypto_akcipher_maxsize(tfm);
>  	outbuf_enc = kzalloc(out_len_max, GFP_KERNEL);
>  	if (!outbuf_enc)

This should go into a separate patch.  Please also rebase it on
my RSA patch series and do_test_rsa no longer exists.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux