projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7dcfab
)
crypto: drbg - Add stdrng alias and increase priority
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 3 Jun 2015 06:49:28 +0000
(14:49 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 4 Jun 2015 07:05:01 +0000
(15:05 +0800)
This patch adds the stdrng module alias and increases the priority
to ensure that it is loaded in preference to other RNGs.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/drbg.c
b/crypto/drbg.c
index 92843488af09b36415ebd041a8659377bd78cb92..04836b4838ef41b63a1f839d60a0b8d83a97f936 100644
(file)
--- a/
crypto/drbg.c
+++ b/
crypto/drbg.c
@@
-1876,7
+1876,7
@@
static inline void __init drbg_fill_array(struct rng_alg *alg,
const struct drbg_core *core, int pr)
{
int pos = 0;
- static int priority =
1
00;
+ static int priority =
2
00;
memcpy(alg->base.cra_name, "stdrng", 6);
if (pr) {
@@
-1965,3
+1965,4
@@
MODULE_DESCRIPTION("NIST SP800-90A Deterministic Random Bit Generator (DRBG) "
CRYPTO_DRBG_HASH_STRING
CRYPTO_DRBG_HMAC_STRING
CRYPTO_DRBG_CTR_STRING);
+MODULE_ALIAS_CRYPTO("stdrng");