]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sha256_generic - add cra_priority
authorEric Biggers <ebiggers@google.com>
Sat, 30 Jun 2018 00:01:42 +0000 (17:01 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Jul 2018 16:30:20 +0000 (00:30 +0800)
commit2ca58437a81d2d00c1f219288141e025de40e058
tree6819d5c0f0416fc03a93784d905cbdb5e06478ae
parentcb106dfa01d687b04c56a039035e8994b419ce7a
crypto: sha256_generic - add cra_priority

sha256-generic and sha224-generic had a cra_priority of 0, so it wasn't
possible to have a lower priority SHA-256 or SHA-224 implementation, as
is desired for sha256_mb which is only useful under certain workloads
and is otherwise extremely slow.  Change them to priority 100, which is
the priority used for many of the other generic algorithms.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sha256_generic.c