crypto: sha512_generic - set cra_driver_name
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Tue, 21 May 2013 14:10:10 +0000 (17:10 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 28 May 2013 07:43:04 +0000 (15:43 +0800)
'sha512_generic' should set driver name now that there is alternative sha512
provider (sha512_ssse3).

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sha512_generic.c

index 4c586209567937e04eb9fe7342809f142b62f67b..6ed124f3ea0f064cbe3f757d09a85e9e44c7ac54 100644 (file)
@@ -251,6 +251,7 @@ static struct shash_alg sha512_algs[2] = { {
        .descsize       =       sizeof(struct sha512_state),
        .base           =       {
                .cra_name       =       "sha512",
+               .cra_driver_name =      "sha512-generic",
                .cra_flags      =       CRYPTO_ALG_TYPE_SHASH,
                .cra_blocksize  =       SHA512_BLOCK_SIZE,
                .cra_module     =       THIS_MODULE,
@@ -263,6 +264,7 @@ static struct shash_alg sha512_algs[2] = { {
        .descsize       =       sizeof(struct sha512_state),
        .base           =       {
                .cra_name       =       "sha384",
+               .cra_driver_name =      "sha384-generic",
                .cra_flags      =       CRYPTO_ALG_TYPE_SHASH,
                .cra_blocksize  =       SHA384_BLOCK_SIZE,
                .cra_module     =       THIS_MODULE,