diff options
author | David Benjamin <davidben@chromium.org> | 2014-12-23 20:26:22 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-01-15 00:06:07 +0300 |
commit | e9e38375a65044bc8f4f08c3752d79db192d35d4 (patch) | |
tree | 867c8a5d33629123975dced95a389dd18849618a /include/openssl/evp.h | |
parent | b8a56f112f9a1963654796ce76ea3fd9a1e3336f (diff) |
Deprecate EVP_PKEY_HMAC.
Now that BoringSSL no longer uses it internally, deprecate it until we can get
any Google code off it and remove it altogether.
Change-Id: I0e15525600b27a65f84b4bb820b879b2424a0ef7
Reviewed-on: https://boringssl-review.googlesource.com/2701
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/evp.h')
-rw-r--r-- | include/openssl/evp.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 1e1dc83c..9c2cf1f8 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -135,9 +135,10 @@ OPENSSL_EXPORT int EVP_PKEY_id(const EVP_PKEY *pkey); * |EVP_PKEY_RSA2| will be turned into |EVP_PKEY_RSA|. */ OPENSSL_EXPORT int EVP_PKEY_type(int nid); -/* EVP_PKEY_new_mac_key allocates a fresh |EVP_PKEY| of the given type (e.g. - * |EVP_PKEY_HMAC|), sets |mac_key| as the MAC key and "generates" a new key, - * suitable for signing. It returns the fresh |EVP_PKEY|, or NULL on error. */ +/* Deprecated: EVP_PKEY_new_mac_key allocates a fresh |EVP_PKEY| of the given + * type (e.g. |EVP_PKEY_HMAC|), sets |mac_key| as the MAC key and "generates" a + * new key, suitable for signing. It returns the fresh |EVP_PKEY|, or NULL on + * error. Use |HMAC_CTX| directly instead. */ OPENSSL_EXPORT EVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *engine, const uint8_t *mac_key, size_t mac_key_len); @@ -174,6 +175,8 @@ OPENSSL_EXPORT struct dh_st *EVP_PKEY_get1_DH(EVP_PKEY *pkey); #define EVP_PKEY_DH NID_dhKeyAgreement #define EVP_PKEY_DHX NID_dhpublicnumber #define EVP_PKEY_EC NID_X9_62_id_ecPublicKey + +/* Deprecated: Use |HMAC_CTX| directly instead. */ #define EVP_PKEY_HMAC NID_hmac /* EVP_PKEY_assign sets the underlying key of |pkey| to |key|, which must be of |