diff options
author | Richard Levitte <levitte@openssl.org> | 2019-07-16 06:03:12 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-08-12 13:35:18 +0200 |
commit | 6a3b7c6887346d37c5771fc1fa755a59add44d0b (patch) | |
tree | 33d62f99c8fc827bb08bad17f36506174573cde0 /crypto/evp/evp_locl.h | |
parent | 2893111fc624b33f59ab78ac7333740adac6d00d (diff) |
Adapt diverse EVP_MD functions to use get_params and set_params interfaces
Also clean up EVP_MD_CTX_ctrl(), which did use these interfaces, but
development since allows for more elegant code.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9391)
Diffstat (limited to 'crypto/evp/evp_locl.h')
-rw-r--r-- | crypto/evp/evp_locl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/evp/evp_locl.h b/crypto/evp/evp_locl.h index 17ab24c07a..59072e368b 100644 --- a/crypto/evp/evp_locl.h +++ b/crypto/evp/evp_locl.h @@ -170,6 +170,11 @@ int evp_do_ciph_ctx_getparams(const EVP_CIPHER *ciph, void *provctx, OSSL_PARAM params[]); int evp_do_ciph_ctx_setparams(const EVP_CIPHER *ciph, void *provctx, OSSL_PARAM params[]); +int evp_do_md_getparams(const EVP_MD *md, OSSL_PARAM params[]); +int evp_do_md_ctx_getparams(const EVP_MD *md, void *provctx, + OSSL_PARAM params[]); +int evp_do_md_ctx_setparams(const EVP_MD *md, void *provctx, + OSSL_PARAM params[]); OSSL_PARAM *evp_pkey_to_param(EVP_PKEY *pkey, size_t *sz); |