security: DH - use KDF implementation from crypto API
authorStephan Müller <smueller@chronox.de>
Fri, 19 Nov 2021 06:59:09 +0000 (07:59 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Nov 2021 05:25:17 +0000 (16:25 +1100)
commitd3b04a4398fe8022c9ca4b5ac6ab08059334b180
tree9b769d7d15a26e700fefe619083fc8b10a3eac5d
parentd7921344234d15ce24a151d932aa0748797fc502
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>
security/keys/Kconfig
security/keys/dh.c