summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp.h
diff options
context:
space:
mode:
authortb <>2021-03-29 15:57:23 +0000
committertb <>2021-03-29 15:57:23 +0000
commitd9dfab150e9c80a3bafbf4effd23e943ab9ba197 (patch)
treebf7d2d4408b27c2ebee7a4c8281f8986c9add8a9 /src/lib/libcrypto/evp/evp.h
parent2e8ea05ba51067fc5bc08b0749d727cb74a13b62 (diff)
downloadopenbsd-d9dfab150e9c80a3bafbf4effd23e943ab9ba197.tar.gz
openbsd-d9dfab150e9c80a3bafbf4effd23e943ab9ba197.tar.bz2
openbsd-d9dfab150e9c80a3bafbf4effd23e943ab9ba197.zip
Prepare to provide EVP_PKEY_new_CMAC_key()
sebastia ran into this when attempting to update security/hcxtools. This will be tested via wycheproof.go once the symbol is public. ok jsing, tested by sebastia
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r--src/lib/libcrypto/evp/evp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index f1fe8a1e34..ca51429fa0 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.79 2020/04/27 19:31:02 tb Exp $ */ 1/* $OpenBSD: evp.h,v 1.80 2021/03/29 15:57:23 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,6 +1149,10 @@ 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,
1154 size_t len, const EVP_CIPHER *cipher);
1155#endif
1152 1156
1153void EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data); 1157void EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data);
1154void *EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx); 1158void *EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx);
@@ -1512,6 +1516,9 @@ void ERR_load_EVP_strings(void);
1512#define EVP_R_INVALID_OPERATION 148 1516#define EVP_R_INVALID_OPERATION 148
1513#define EVP_R_IV_TOO_LARGE 102 1517#define EVP_R_IV_TOO_LARGE 102
1514#define EVP_R_KEYGEN_FAILURE 120 1518#define EVP_R_KEYGEN_FAILURE 120
1519#if defined(LIBRESSL_INTERNAL)
1520#define EVP_R_KEY_SETUP_FAILED 180
1521#endif
1515#define EVP_R_MESSAGE_DIGEST_IS_NULL 159 1522#define EVP_R_MESSAGE_DIGEST_IS_NULL 159
1516#define EVP_R_METHOD_NOT_SUPPORTED 144 1523#define EVP_R_METHOD_NOT_SUPPORTED 144
1517#define EVP_R_MISSING_PARAMETERS 103 1524#define EVP_R_MISSING_PARAMETERS 103