summaryrefslogtreecommitdiff
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>2017-05-30 17:52:48 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-10 12:04:35 +0800
commitb6e85ebe22fdef45e0e4eff2e68ed69fc7d3cf89 (patch)
tree50c75c82aa9da75e4115f81c5b612683ef84721d /crypto/Kconfig
parent748c1a9db112b42f5a0815f44ca57d68e99fbb1a (diff)
downloadlinux-crypto-b6e85ebe22fdef45e0e4eff2e68ed69fc7d3cf89.tar.gz
linux-crypto-b6e85ebe22fdef45e0e4eff2e68ed69fc7d3cf89.zip
crypto: ecdh - add privkey generation support
Add support for generating ecc private keys. Generation of ecc private keys is helpful in a user-space to kernel ecdh offload because the keys are not revealed to user-space. Private key generation is also helpful to implement forward secrecy. If the user provides a NULL ecc private key, the kernel will generate it and further use it for ecdh. Move ecdh's object files below drbg's. drbg must be present in the kernel at the time of calling. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Reviewed-by: Stephan Müller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r--crypto/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index aac4bc90..caa770e5 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -130,6 +130,7 @@ config CRYPTO_DH
config CRYPTO_ECDH
tristate "ECDH algorithm"
select CRYTPO_KPP
+ select CRYPTO_RNG_DEFAULT
help
Generic implementation of the ECDH algorithm