diff options
author | Stephan Müller <smueller@chronox.de> | 2017-04-04 02:04:05 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-06-08 13:32:16 +0100 |
commit | badd34263aff2c53749774589310d232c31b8f4b (patch) | |
tree | bd22eddf3360526669b2f3f0d7968416ad276114 /version.lds | |
parent | dd88d8815a83322007b9deb666d947d6c3c3be7b (diff) | |
download | keyutils-badd34263aff2c53749774589310d232c31b8f4b.tar.gz |
Add the interface logic to support DH with KDF handling support.
The dh_compute code now allows the following options:
- no KDF support / output of raw DH shared secret:
dh_compute <private> <prime> <base>
- KDF support without "other information" string:
dh_compute_kdf <private> <prime> <base> <output length> <hash_type>
- KDF support with "other information string:
dh_compute_kdf_oi <private> <prime> <base> <output length> <hash_type>
where the OI string is provided on STDIN.
The test to verify the code is based on a test vector used for the CAVS
testing of SP800-56A.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'version.lds')
-rw-r--r-- | version.lds | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/version.lds b/version.lds index e522640..4c5babe 100644 --- a/version.lds +++ b/version.lds @@ -72,5 +72,7 @@ KEYUTILS_1.6 { KEYUTILS_1.7 { /* management functions */ keyctl_restrict; + keyctl_dh_compute_kdf; + keyctl_dh_compute_kdf_alloc; } KEYUTILS_1.6; |