Commit 3fc12642 authored by Łukasz Stelmach's avatar Łukasz Stelmach Committed by Herbert Xu

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: default avatarŁukasz Stelmach <l.stelmach@samsung.com>
Reviewed-by: default avatarStephan Mueller <smueller@chronox.de>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 209c14bf
...@@ -259,7 +259,7 @@ static struct rng_alg exynos_rng_alg = { ...@@ -259,7 +259,7 @@ static struct rng_alg exynos_rng_alg = {
.base = { .base = {
.cra_name = "stdrng", .cra_name = "stdrng",
.cra_driver_name = "exynos_rng", .cra_driver_name = "exynos_rng",
.cra_priority = 100, .cra_priority = 300,
.cra_ctxsize = sizeof(struct exynos_rng_ctx), .cra_ctxsize = sizeof(struct exynos_rng_ctx),
.cra_module = THIS_MODULE, .cra_module = THIS_MODULE,
.cra_init = exynos_rng_kcapi_init, .cra_init = exynos_rng_kcapi_init,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment