summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_locl.h
diff options
context:
space:
mode:
authorjsing <>2019-10-29 07:52:17 +0000
committerjsing <>2019-10-29 07:52:17 +0000
commitc20b0b4d3d1da89ee904502f4241815376c15133 (patch)
tree20651aef6d8c3bc2f88401c4929ba130cbfccf7e /src/lib/libcrypto/evp/evp_locl.h
parent807a786996712e07f0fe283c5bbf5400b5f2ac2c (diff)
downloadopenbsd-c20b0b4d3d1da89ee904502f4241815376c15133.tar.gz
openbsd-c20b0b4d3d1da89ee904502f4241815376c15133.tar.bz2
openbsd-c20b0b4d3d1da89ee904502f4241815376c15133.zip
Provide EVP_PKEY_CTX_md().
This handles controls with a message digest by name, looks up the message digest and then proxies the control through with the EVP_MD *. This is internal only for now and will be used in upcoming RSA related changes. Based on OpenSSL 1.1.1d. ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libcrypto/evp/evp_locl.h')
-rw-r--r--src/lib/libcrypto/evp/evp_locl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_locl.h b/src/lib/libcrypto/evp/evp_locl.h
index 0b1bea9583..8df6135493 100644
--- a/src/lib/libcrypto/evp/evp_locl.h
+++ b/src/lib/libcrypto/evp/evp_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_locl.h,v 1.15 2018/11/24 11:16:44 tb Exp $ */ 1/* $OpenBSD: evp_locl.h,v 1.16 2019/10/29 07:52:17 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -367,4 +367,6 @@ struct evp_aead_st {
367 const unsigned char *ad, size_t ad_len); 367 const unsigned char *ad, size_t ad_len);
368}; 368};
369 369
370int EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md_name);
371
370__END_HIDDEN_DECLS 372__END_HIDDEN_DECLS