Set error when HKDF used without parameters
authorJohannes Bauer <joe@johannes-bauer.com>
Fri, 21 Jul 2017 22:11:39 +0000 (00:11 +0200)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 3 Aug 2017 00:07:52 +0000 (01:07 +0100)
commite65f650922f5aa9b8970a5ff935938ec46281c1a
treef402cd41343a37f51423a4c71a662ae5291fac85
parentd9ca12cbf6287aee7d86579f4c03be1155696c9f
Set error when HKDF used without parameters

Introduce KDF_F_PKEY_HKDF_DERIVE and return the KDF_R_MISSING_PARAMETER
error code when required parameters have not been set. This will make
"openssl pkeyutl -kdf HKDF" return a meaningful error message instead of
simply "Public Key operation error".

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Stephen Henson <steve@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3989)
crypto/err/openssl.txt
crypto/kdf/hkdf.c
crypto/kdf/kdf_err.c
include/openssl/kdferr.h