aboutsummaryrefslogtreecommitdiffstats
path: root/security/keys/Kconfig
diff options
context:
space:
mode:
authorStephan Müller <smueller@chronox.de>2021-11-19 07:59:09 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-11-26 16:25:17 +1100
commitd3b04a4398fe8022c9ca4b5ac6ab08059334b180 (patch)
tree9b769d7d15a26e700fefe619083fc8b10a3eac5d /security/keys/Kconfig
parentsecurity: DH - remove dead code for zero padding (diff)
downloadlinux-dev-d3b04a4398fe8022c9ca4b5ac6ab08059334b180.tar.xz
linux-dev-d3b04a4398fe8022c9ca4b5ac6ab08059334b180.zip
security: DH - use KDF implementation from crypto API
The kernel crypto API provides the SP800-108 counter KDF implementation. Thus, the separate implementation provided as part of the keys subsystem can be replaced with calls to the KDF offered by the kernel crypto API. The keys subsystem uses the counter KDF with a hash primitive. Thus, it only uses the call to crypto_kdf108_ctr_generate. Signed-off-by: Stephan Mueller <smueller@chronox.de> Acked-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'security/keys/Kconfig')
-rw-r--r--security/keys/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/Kconfig b/security/keys/Kconfig
index 64b81abd087e..969122c7b92f 100644
--- a/security/keys/Kconfig
+++ b/security/keys/Kconfig
@@ -109,7 +109,7 @@ config KEY_DH_OPERATIONS
bool "Diffie-Hellman operations on retained keys"
depends on KEYS
select CRYPTO
- select CRYPTO_HASH
+ select CRYPTO_KDF800108_CTR
select CRYPTO_DH
help
This option provides support for calculating Diffie-Hellman