diff options
author | Johannes Bauer <joe@johannes-bauer.com> | 2017-07-26 21:49:36 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2017-08-03 01:07:52 +0100 |
commit | f55129c73920a060e813c883d864222482e067c8 (patch) | |
tree | f140821abd6f4c9c32c3f0cb090ec1e521f9c801 /include | |
parent | a24a5b8cc4103ddd69f21c91c7d7372abc270157 (diff) | |
download | openssl-f55129c73920a060e813c883d864222482e067c8.tar.gz |
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)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/kdferr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/kdferr.h b/include/openssl/kdferr.h index 9c09991bfd..67bd3a3622 100644 --- a/include/openssl/kdferr.h +++ b/include/openssl/kdferr.h @@ -31,7 +31,10 @@ int ERR_load_KDF_strings(void); * KDF reason codes. */ # define KDF_R_INVALID_DIGEST 100 +# define KDF_R_MISSING_KEY 104 +# define KDF_R_MISSING_MESSAGE_DIGEST 105 # define KDF_R_MISSING_PARAMETER 101 +# define KDF_R_MISSING_SEED 106 # define KDF_R_UNKNOWN_PARAMETER_TYPE 103 # define KDF_R_VALUE_MISSING 102 |