Changed use of EVP_PKEY_CTX_md() and more specific error codes
authorJohannes Bauer <joe@johannes-bauer.com>
Wed, 26 Jul 2017 19:49:36 +0000 (21:49 +0200)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 3 Aug 2017 00:07:52 +0000 (01:07 +0100)
commitf55129c73920a060e813c883d864222482e067c8
treef140821abd6f4c9c32c3f0cb090ec1e521f9c801
parenta24a5b8cc4103ddd69f21c91c7d7372abc270157
Changed use of EVP_PKEY_CTX_md() and more specific error codes

Changed HKDF to use EVP_PKEY_CTX_md() (review comment of @snhenson) and
introduced more specific error codes (not only indicating *that* some
parameter is missing, but actually *which* one it is).

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
crypto/kdf/tls1_prf.c
include/openssl/kdferr.h