Re: [PATCH] crypto: qat - implement dh fallback for primes > 4K

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

 



On Thu, Apr 11, 2024 at 11:24:58AM +0200, Damian Muszynski wrote:
> The Intel QAT driver provides support for the Diffie-Hellman (DH)
> algorithm, limited to prime numbers up to 4K. This driver is used
> by default on platforms with integrated QAT hardware for all DH requests.
> This has led to failures with algorithms requiring larger prime sizes,
> such as ffdhe6144.
> 
>   alg: ffdhe6144(dh): test failed on vector 1, err=-22
>   alg: self-tests for ffdhe6144(qat-dh) (ffdhe6144(dh)) failed (rc=-22)
> 
> Implement a fallback mechanism when an unsupported request is received.
> 
> Signed-off-by: Damian Muszynski <damian.muszynski@xxxxxxxxx>
> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx>
> ---
>  .../intel/qat/qat_common/qat_asym_algs.c      | 66 +++++++++++++++++--
>  1 file changed, 60 insertions(+), 6 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




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