summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2021-03-31 16:47:01 +0000
committertb <>2021-03-31 16:47:01 +0000
commit252a88b0b394b1325df5ea2487a693f987d2fd1b (patch)
tree0f1d24fdae80d89fa890b5f18b860b08b8f45971 /src/lib
parent608ab815534e122558c60f61158d3c4db6d6132d (diff)
downloadopenbsd-252a88b0b394b1325df5ea2487a693f987d2fd1b.tar.gz
openbsd-252a88b0b394b1325df5ea2487a693f987d2fd1b.tar.bz2
openbsd-252a88b0b394b1325df5ea2487a693f987d2fd1b.zip
Provide EVP_PKEY_new_CMAC_key(3)
ok bcook inoguchi jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/Symbols.list1
-rw-r--r--src/lib/libcrypto/evp/evp.h6
2 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index 662eb4dc29..ca8e371ff6 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -1587,6 +1587,7 @@ EVP_PKEY_meth_set_verify_recover
1587EVP_PKEY_meth_set_verifyctx 1587EVP_PKEY_meth_set_verifyctx
1588EVP_PKEY_missing_parameters 1588EVP_PKEY_missing_parameters
1589EVP_PKEY_new 1589EVP_PKEY_new
1590EVP_PKEY_new_CMAC_key
1590EVP_PKEY_new_mac_key 1591EVP_PKEY_new_mac_key
1591EVP_PKEY_paramgen 1592EVP_PKEY_paramgen
1592EVP_PKEY_paramgen_init 1593EVP_PKEY_paramgen_init
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index ca51429fa0..e8a6eea035 100644
--- a/src/lib/libcrypto/evp/evp.h
+++ b/src/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp.h,v 1.80 2021/03/29 15:57:23 tb Exp $ */ 1/* $OpenBSD: evp.h,v 1.81 2021/03/31 16:47:01 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1149,10 +1149,8 @@ void EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen);
1149 1149
1150EVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *e, const unsigned char *key, 1150EVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *e, const unsigned char *key,
1151 int keylen); 1151 int keylen);
1152#if defined(LIBRESSL_INTERNAL)
1153EVP_PKEY *EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv, 1152EVP_PKEY *EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv,
1154 size_t len, const EVP_CIPHER *cipher); 1153 size_t len, const EVP_CIPHER *cipher);
1155#endif
1156 1154
1157void EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data); 1155void EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data);
1158void *EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx); 1156void *EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx);
@@ -1516,9 +1514,7 @@ void ERR_load_EVP_strings(void);
1516#define EVP_R_INVALID_OPERATION 148 1514#define EVP_R_INVALID_OPERATION 148
1517#define EVP_R_IV_TOO_LARGE 102 1515#define EVP_R_IV_TOO_LARGE 102
1518#define EVP_R_KEYGEN_FAILURE 120 1516#define EVP_R_KEYGEN_FAILURE 120
1519#if defined(LIBRESSL_INTERNAL)
1520#define EVP_R_KEY_SETUP_FAILED 180 1517#define EVP_R_KEY_SETUP_FAILED 180
1521#endif
1522#define EVP_R_MESSAGE_DIGEST_IS_NULL 159 1518#define EVP_R_MESSAGE_DIGEST_IS_NULL 159
1523#define EVP_R_METHOD_NOT_SUPPORTED 144 1519#define EVP_R_METHOD_NOT_SUPPORTED 144
1524#define EVP_R_MISSING_PARAMETERS 103 1520#define EVP_R_MISSING_PARAMETERS 103