summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-03-05 15:13:43 +0000
committerMatt Caswell <matt@openssl.org>2018-03-15 12:47:27 +0000
commite32b52a27e20a45f51f489e4efc04d1ca72b9609 (patch)
tree95cbe2c2b77ed2b929b34f00f3ac794e0fb14408 /include
parentcc8b15c7e1934ba710fbce32676451acc9cbe8a0 (diff)
Add support for setting raw private HMAC keys
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5520)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/evp.h6
1 files changed, 4 insertions, 2 deletions
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);