mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
crypto: ecc - fix CRYPTO_DEFAULT_RNG dependency
[ Upstream commit38aa192a05] The ecc.c file started out as part of the ECDH algorithm but got moved out into a standalone module later. It does not build without CRYPTO_DEFAULT_RNG, so now that other modules are using it as well we can run into this link error: aarch64-linux-ld: ecc.c:(.text+0xfc8): undefined reference to `crypto_default_rng' aarch64-linux-ld: ecc.c:(.text+0xff4): undefined reference to `crypto_put_default_rng' Move the 'select CRYPTO_DEFAULT_RNG' statement into the correct symbol. Fixes:0d7a78643f("crypto: ecrdsa - add EC-RDSA (GOST 34.10) algorithm") Fixes:4e6602916b("crypto: ecdsa - Add support for ECDSA signature verification") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
848f1f00c6
commit
66f7de13d1
|
|
@ -238,12 +238,12 @@ config CRYPTO_DH
|
||||||
|
|
||||||
config CRYPTO_ECC
|
config CRYPTO_ECC
|
||||||
tristate
|
tristate
|
||||||
|
select CRYPTO_RNG_DEFAULT
|
||||||
|
|
||||||
config CRYPTO_ECDH
|
config CRYPTO_ECDH
|
||||||
tristate "ECDH algorithm"
|
tristate "ECDH algorithm"
|
||||||
select CRYPTO_ECC
|
select CRYPTO_ECC
|
||||||
select CRYPTO_KPP
|
select CRYPTO_KPP
|
||||||
select CRYPTO_RNG_DEFAULT
|
|
||||||
help
|
help
|
||||||
Generic implementation of the ECDH algorithm
|
Generic implementation of the ECDH algorithm
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user