Re: [PATCH] crypto: powerpc - convert to use crypto_simd_usable()

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

 



On Fri, Apr 12, 2019 at 10:33:12PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
> 
> Replace all calls to in_interrupt() in the PowerPC crypto code with
> !crypto_simd_usable().  This causes the crypto self-tests to test the
> no-SIMD code paths when CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y.
> 
> The p8_ghash algorithm is currently failing and needs to be fixed, as it
> produces the wrong digest when no-SIMD updates are mixed with SIMD ones.
> 
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
>  arch/powerpc/crypto/crc32c-vpmsum_glue.c    | 4 +++-
>  arch/powerpc/crypto/crct10dif-vpmsum_glue.c | 4 +++-
>  arch/powerpc/include/asm/Kbuild             | 1 +
>  drivers/crypto/vmx/aes.c                    | 7 ++++---
>  drivers/crypto/vmx/aes_cbc.c                | 7 ++++---
>  drivers/crypto/vmx/aes_ctr.c                | 5 +++--
>  drivers/crypto/vmx/aes_xts.c                | 5 +++--
>  drivers/crypto/vmx/ghash.c                  | 9 ++++-----
>  8 files changed, 25 insertions(+), 17 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