diff options
author | Łukasz Stelmach <l.stelmach@samsung.com> | 2017-12-05 17:20:46 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-12-22 09:29:03 +0100 |
commit | 3fc1264271c151e150b16026a25f531b3c2e79d6 (patch) | |
tree | ae29e6e1598f8c8e42b3bfee41394fac34dc5a65 /drivers/crypto/exynos-rng.c | |
parent | crypto: chelsio - fix a type cast error (diff) | |
download | linux-3fc1264271c151e150b16026a25f531b3c2e79d6.tar.xz linux-3fc1264271c151e150b16026a25f531b3c2e79d6.zip |
crypto: exynos - Icrease the priority of the driver
exynos-rng is one of many implementations of stdrng. With priority as
low as 100 it isn't selected, if software implementations (DRBG) are
available. The value 300 was selected to give the PRNG priority before
software implementations, but allow them to be selected in FIPS-mode
(fips=1 in the kernel command line).
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/exynos-rng.c')
-rw-r--r-- | drivers/crypto/exynos-rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/exynos-rng.c b/drivers/crypto/exynos-rng.c index 451620b475a0..ed6ba796ad71 100644 --- a/drivers/crypto/exynos-rng.c +++ b/drivers/crypto/exynos-rng.c @@ -259,7 +259,7 @@ static struct rng_alg exynos_rng_alg = { .base = { .cra_name = "stdrng", .cra_driver_name = "exynos_rng", - .cra_priority = 100, + .cra_priority = 300, .cra_ctxsize = sizeof(struct exynos_rng_ctx), .cra_module = THIS_MODULE, .cra_init = exynos_rng_kcapi_init, |