diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index e122a6b329..a3a55caf88 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.93 2022/01/10 11:52:43 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.94 2022/01/10 12:10:26 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 | * |
@@ -1090,6 +1090,10 @@ void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth, | |||
1090 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || defined(LIBRESSL_NEXT_API) | 1090 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || defined(LIBRESSL_NEXT_API) |
1091 | void EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth, | 1091 | void EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth, |
1092 | int (*pkey_check)(const EVP_PKEY *pk)); | 1092 | int (*pkey_check)(const EVP_PKEY *pk)); |
1093 | void EVP_PKEY_asn1_set_public_check(EVP_PKEY_ASN1_METHOD *ameth, | ||
1094 | int (*pkey_public_check)(const EVP_PKEY *pk)); | ||
1095 | void EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth, | ||
1096 | int (*pkey_check)(const EVP_PKEY *pk)); | ||
1093 | #endif | 1097 | #endif |
1094 | 1098 | ||
1095 | #define EVP_PKEY_OP_UNDEFINED 0 | 1099 | #define EVP_PKEY_OP_UNDEFINED 0 |
@@ -1220,6 +1224,8 @@ int EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx); | |||
1220 | int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey); | 1224 | int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey); |
1221 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || defined(LIBRESSL_NEXT_API) | 1225 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || defined(LIBRESSL_NEXT_API) |
1222 | int EVP_PKEY_check(EVP_PKEY_CTX *ctx); | 1226 | int EVP_PKEY_check(EVP_PKEY_CTX *ctx); |
1227 | int EVP_PKEY_public_check(EVP_PKEY_CTX *ctx); | ||
1228 | int EVP_PKEY_param_check(EVP_PKEY_CTX *ctx); | ||
1223 | #endif | 1229 | #endif |
1224 | 1230 | ||
1225 | void EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb); | 1231 | void EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb); |
@@ -1290,6 +1296,10 @@ void EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth, | |||
1290 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || defined(LIBRESSL_NEXT_API) | 1296 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || defined(LIBRESSL_NEXT_API) |
1291 | void EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth, | 1297 | void EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth, |
1292 | int (*check)(EVP_PKEY *pkey)); | 1298 | int (*check)(EVP_PKEY *pkey)); |
1299 | void EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth, | ||
1300 | int (*public_check)(EVP_PKEY *pkey)); | ||
1301 | void EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth, | ||
1302 | int (*param_check)(EVP_PKEY *pkey)); | ||
1293 | #endif | 1303 | #endif |
1294 | 1304 | ||
1295 | /* Authenticated Encryption with Additional Data. | 1305 | /* Authenticated Encryption with Additional Data. |