From e32b52a27e20a45f51f489e4efc04d1ca72b9609 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 5 Mar 2018 15:13:43 +0000 Subject: Add support for setting raw private HMAC keys Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/5520) --- include/openssl/evp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 04797635b9..d80ca41e65 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -1337,9 +1337,11 @@ void EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen); EVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *e, const unsigned char *key, int keylen); -EVP_PKEY *EVP_PKEY_new_private_key(int type, ENGINE *e, unsigned char *priv, +EVP_PKEY *EVP_PKEY_new_private_key(int type, ENGINE *e, + const unsigned char *priv, size_t len); -EVP_PKEY *EVP_PKEY_new_public_key(int type, ENGINE *e, unsigned char *pub, +EVP_PKEY *EVP_PKEY_new_public_key(int type, ENGINE *e, + const unsigned char *pub, size_t len); void EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data); -- cgit v1.2.3