From f7a9b118c2402e2e0dc52e31a23deb6eff6a94af Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 29 Jun 2018 17:01:41 -0700 Subject: 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 Signed-off-by: Herbert Xu --- crypto/sha1_generic.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/sha1_generic.c') diff --git a/crypto/sha1_generic.c b/crypto/sha1_generic.c index 6877cbb9..a3d70163 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, -- cgit v1.2.3