diff options
author | Stephan Mueller <smueller@chronox.de> | 2016-05-13 08:02:00 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-05-31 04:41:46 -0400 |
commit | 1a445e8efaa4334457c4d1f48a5d1d829b503f0c (patch) | |
tree | 89a3b46d3cb10137224bf34faa5d1c65ffc83a1b | |
parent | 446985428d2cd10efd5d139c33de16c50ee771ba (diff) |
crypto: sha-ssse3 - add MODULE_ALIAS
Add the MODULE_ALIAS for the cra_driver_name of the different ciphers to
allow an automated loading if a driver name is used.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | arch/x86/crypto/sha1_ssse3_glue.c | 6 | ||||
-rw-r--r-- | arch/x86/crypto/sha256_ssse3_glue.c | 10 | ||||
-rw-r--r-- | arch/x86/crypto/sha512_ssse3_glue.c | 6 |
3 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86/crypto/sha1_ssse3_glue.c b/arch/x86/crypto/sha1_ssse3_glue.c index 1024e378a358..fc61739150e7 100644 --- a/arch/x86/crypto/sha1_ssse3_glue.c +++ b/arch/x86/crypto/sha1_ssse3_glue.c | |||
@@ -374,3 +374,9 @@ MODULE_LICENSE("GPL"); | |||
374 | MODULE_DESCRIPTION("SHA1 Secure Hash Algorithm, Supplemental SSE3 accelerated"); | 374 | MODULE_DESCRIPTION("SHA1 Secure Hash Algorithm, Supplemental SSE3 accelerated"); |
375 | 375 | ||
376 | MODULE_ALIAS_CRYPTO("sha1"); | 376 | MODULE_ALIAS_CRYPTO("sha1"); |
377 | MODULE_ALIAS_CRYPTO("sha1-ssse3"); | ||
378 | MODULE_ALIAS_CRYPTO("sha1-avx"); | ||
379 | MODULE_ALIAS_CRYPTO("sha1-avx2"); | ||
380 | #ifdef CONFIG_AS_SHA1_NI | ||
381 | MODULE_ALIAS_CRYPTO("sha1-ni"); | ||
382 | #endif | ||
diff --git a/arch/x86/crypto/sha256_ssse3_glue.c b/arch/x86/crypto/sha256_ssse3_glue.c index 3ae0f43ebd37..9e79baf03a4b 100644 --- a/arch/x86/crypto/sha256_ssse3_glue.c +++ b/arch/x86/crypto/sha256_ssse3_glue.c | |||
@@ -427,4 +427,14 @@ MODULE_LICENSE("GPL"); | |||
427 | MODULE_DESCRIPTION("SHA256 Secure Hash Algorithm, Supplemental SSE3 accelerated"); | 427 | MODULE_DESCRIPTION("SHA256 Secure Hash Algorithm, Supplemental SSE3 accelerated"); |
428 | 428 | ||
429 | MODULE_ALIAS_CRYPTO("sha256"); | 429 | MODULE_ALIAS_CRYPTO("sha256"); |
430 | MODULE_ALIAS_CRYPTO("sha256-ssse3"); | ||
431 | MODULE_ALIAS_CRYPTO("sha256-avx"); | ||
432 | MODULE_ALIAS_CRYPTO("sha256-avx2"); | ||
430 | MODULE_ALIAS_CRYPTO("sha224"); | 433 | MODULE_ALIAS_CRYPTO("sha224"); |
434 | MODULE_ALIAS_CRYPTO("sha224-ssse3"); | ||
435 | MODULE_ALIAS_CRYPTO("sha224-avx"); | ||
436 | MODULE_ALIAS_CRYPTO("sha224-avx2"); | ||
437 | #ifdef CONFIG_AS_SHA256_NI | ||
438 | MODULE_ALIAS_CRYPTO("sha256-ni"); | ||
439 | MODULE_ALIAS_CRYPTO("sha224-ni"); | ||
440 | #endif | ||
diff --git a/arch/x86/crypto/sha512_ssse3_glue.c b/arch/x86/crypto/sha512_ssse3_glue.c index 0b17c83d027d..2b0e2a6825f3 100644 --- a/arch/x86/crypto/sha512_ssse3_glue.c +++ b/arch/x86/crypto/sha512_ssse3_glue.c | |||
@@ -346,4 +346,10 @@ MODULE_LICENSE("GPL"); | |||
346 | MODULE_DESCRIPTION("SHA512 Secure Hash Algorithm, Supplemental SSE3 accelerated"); | 346 | MODULE_DESCRIPTION("SHA512 Secure Hash Algorithm, Supplemental SSE3 accelerated"); |
347 | 347 | ||
348 | MODULE_ALIAS_CRYPTO("sha512"); | 348 | MODULE_ALIAS_CRYPTO("sha512"); |
349 | MODULE_ALIAS_CRYPTO("sha512-ssse3"); | ||
350 | MODULE_ALIAS_CRYPTO("sha512-avx"); | ||
351 | MODULE_ALIAS_CRYPTO("sha512-avx2"); | ||
349 | MODULE_ALIAS_CRYPTO("sha384"); | 352 | MODULE_ALIAS_CRYPTO("sha384"); |
353 | MODULE_ALIAS_CRYPTO("sha384-ssse3"); | ||
354 | MODULE_ALIAS_CRYPTO("sha384-avx"); | ||
355 | MODULE_ALIAS_CRYPTO("sha384-avx2"); | ||