KEYS: Add placeholder for KDF usage with DH
authorStephan Mueller <smueller@chronox.de>
Thu, 26 May 2016 21:38:12 +0000 (23:38 +0200)
committerJames Morris <james.l.morris@oracle.com>
Fri, 3 Jun 2016 06:14:34 +0000 (16:14 +1000)
commit4693fc734d675c5518ea9bd4c9623db45bc37402
tree54dcf2388f5868c5d5a8ab4faf3b64a8e2fa4f79
parent4340fa55298d17049e71c7a34e04647379c269f3
KEYS: Add placeholder for KDF usage with DH

The values computed during Diffie-Hellman key exchange are often used
in combination with key derivation functions to create cryptographic
keys.  Add a placeholder for a later implementation to configure a
key derivation function that will transform the Diffie-Hellman
result returned by the KEYCTL_DH_COMPUTE command.

[This patch was stripped down from a patch produced by Mat Martineau that
 had a bug in the compat code - so for the moment Stephan's patch simply
 requires that the placeholder argument must be NULL]

Original-signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Documentation/security/keys.txt
security/keys/compat.c
security/keys/dh.c
security/keys/internal.h
security/keys/keyctl.c