]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: ecc - fix CRYPTO_DEFAULT_RNG dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 20 Sep 2021 10:05:35 +0000 (12:05 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:42:20 +0000 (18:42 +0100)
commit0c55670803d7c94e5b013de1e7c6f695828655bd
tree1896133a83549e91b649b54e3d2e2c519e99efcf
parent97093aa3b4c7f15bcc59ebc6f3e20ccf0cdf7e4f
crypto: ecc - fix CRYPTO_DEFAULT_RNG dependency

BugLink: https://bugs.launchpad.net/bugs/1953387
[ Upstream commit 38aa192a05f22f9778f9420e630f0322525ef12e ]

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: 0d7a78643f69 ("crypto: ecrdsa - add EC-RDSA (GOST 34.10) algorithm")
Fixes: 4e6602916bc6 ("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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
crypto/Kconfig