OSDN Git Service

crypto: sha512_generic - add cra_priority
authorEric Biggers <ebiggers@google.com>
Sat, 30 Jun 2018 00:01:43 +0000 (17:01 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Jul 2018 16:30:21 +0000 (00:30 +0800)
commite47890163a3c2a6ec5a18322d283046d1bdec5e6
tree2e31caec320a25c201994198d4af4f420fc95f22
parentb73b7ac0a77492b1bd671a72787931847b330c03
crypto: sha512_generic - add cra_priority

sha512-generic and sha384-generic had a cra_priority of 0, so it wasn't
possible to have a lower priority SHA-512 or SHA-384 implementation, as
is desired for sha512_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/sha512_generic.c