]> Git Repo - linux.git/commit
crypto: testmgr - test setkey in no-SIMD context
authorEric Biggers <[email protected]>
Mon, 27 May 2024 08:05:39 +0000 (01:05 -0700)
committerHerbert Xu <[email protected]>
Fri, 7 Jun 2024 11:46:38 +0000 (19:46 +0800)
commitfa501bf25eb353422a0c966ed91662051edac839
tree4633b512498c3fcc7d3da15ad31d43b0a052f4e8
parentaabbf2135f9a9526991f17cb0c78cf1ec878f1c2
crypto: testmgr - test setkey in no-SIMD context

Since crypto_shash_setkey(), crypto_ahash_setkey(),
crypto_skcipher_setkey(), and crypto_aead_setkey() apparently need to
work in no-SIMD context on some architectures, make the self-tests cover
this scenario.  Specifically, sometimes do the setkey while under
crypto_disable_simd_for_test(), and do this independently from disabling
SIMD for the other parts of the crypto operation since there is no
guarantee that all parts happen in the same context.  (I.e., drivers
mustn't store the key in different formats for SIMD vs. no-SIMD.)

Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
crypto/testmgr.c
This page took 0.056097 seconds and 4 git commands to generate.