diff options
author | Eric Biggers <ebiggers@google.com> | 2018-06-30 02:01:41 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-07-08 18:30:20 +0200 |
commit | 90ef3e4835c33541f2eca0b4276fbc1dd83832d8 (patch) | |
tree | e084df65c846f87dfff951d9a8c56d69508aaf39 /crypto/sha1_generic.c | |
parent | crypto: MAINTAINERS - fix file path for SHA multibuffer code (diff) | |
download | linux-90ef3e4835c33541f2eca0b4276fbc1dd83832d8.tar.xz linux-90ef3e4835c33541f2eca0b4276fbc1dd83832d8.zip |
crypto: sha1_generic - add cra_priority
sha1-generic had a cra_priority of 0, so it wasn't possible to have a
lower priority SHA-1 implementation, as is desired for sha1_mb which is
only useful under certain workloads and is otherwise extremely slow.
Change it 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>
Diffstat (limited to '')
-rw-r--r-- | crypto/sha1_generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/sha1_generic.c b/crypto/sha1_generic.c index 6877cbb9105f..a3d701632ca2 100644 --- a/crypto/sha1_generic.c +++ b/crypto/sha1_generic.c @@ -76,6 +76,7 @@ static struct shash_alg alg = { .base = { .cra_name = "sha1", .cra_driver_name= "sha1-generic", + .cra_priority = 100, .cra_flags = CRYPTO_ALG_TYPE_SHASH, .cra_blocksize = SHA1_BLOCK_SIZE, .cra_module = THIS_MODULE, |