提交 3fc12642 编写于 作者: Ł Łukasz Stelmach 提交者: 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: NŁukasz Stelmach <l.stelmach@samsung.com>
Reviewed-by: NStephan Mueller <smueller@chronox.de>
Reviewed-by: NKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册