diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/Symbols.list | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/evp.h | 22 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/evp_local.h | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/evp_pbe.c | 40 |
4 files changed, 6 insertions, 67 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index a7181eb38e..28f115da06 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
| @@ -1269,11 +1269,6 @@ EVP_MD_size | |||
| 1269 | EVP_MD_type | 1269 | EVP_MD_type |
| 1270 | EVP_OpenFinal | 1270 | EVP_OpenFinal |
| 1271 | EVP_OpenInit | 1271 | EVP_OpenInit |
| 1272 | EVP_PBE_CipherInit | ||
| 1273 | EVP_PBE_alg_add | ||
| 1274 | EVP_PBE_alg_add_type | ||
| 1275 | EVP_PBE_cleanup | ||
| 1276 | EVP_PBE_find | ||
| 1277 | EVP_PKCS82PKEY | 1272 | EVP_PKCS82PKEY |
| 1278 | EVP_PKEY2PKCS8 | 1273 | EVP_PKEY2PKCS8 |
| 1279 | EVP_PKEY_CTX_ctrl | 1274 | EVP_PKEY_CTX_ctrl |
| @@ -2007,7 +2002,6 @@ PKCS12_unpack_p7data | |||
| 2007 | PKCS12_unpack_p7encdata | 2002 | PKCS12_unpack_p7encdata |
| 2008 | PKCS12_verify_mac | 2003 | PKCS12_verify_mac |
| 2009 | PKCS1_MGF1 | 2004 | PKCS1_MGF1 |
| 2010 | PKCS5_PBE_add | ||
| 2011 | PKCS5_PBE_keyivgen | 2005 | PKCS5_PBE_keyivgen |
| 2012 | PKCS5_PBKDF2_HMAC | 2006 | PKCS5_PBKDF2_HMAC |
| 2013 | PKCS5_PBKDF2_HMAC_SHA1 | 2007 | PKCS5_PBKDF2_HMAC_SHA1 |
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index eba3ab3869..b810e72767 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.127 2024/03/02 10:04:40 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.128 2024/03/02 10:06:48 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 | * |
| @@ -897,26 +897,6 @@ int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, | |||
| 897 | ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, | 897 | ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, |
| 898 | int en_de); | 898 | int en_de); |
| 899 | 899 | ||
| 900 | void PKCS5_PBE_add(void); | ||
| 901 | |||
| 902 | int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, | ||
| 903 | ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de); | ||
| 904 | |||
| 905 | /* PBE type */ | ||
| 906 | |||
| 907 | /* Can appear as the outermost AlgorithmIdentifier */ | ||
| 908 | #define EVP_PBE_TYPE_OUTER 0x0 | ||
| 909 | /* Is an PRF type OID */ | ||
| 910 | #define EVP_PBE_TYPE_PRF 0x1 | ||
| 911 | |||
| 912 | int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, int md_nid, | ||
| 913 | EVP_PBE_KEYGEN *keygen); | ||
| 914 | int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md, | ||
| 915 | EVP_PBE_KEYGEN *keygen); | ||
| 916 | int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid, | ||
| 917 | EVP_PBE_KEYGEN **pkeygen); | ||
| 918 | void EVP_PBE_cleanup(void); | ||
| 919 | |||
| 920 | #define ASN1_PKEY_ALIAS 0x1 | 900 | #define ASN1_PKEY_ALIAS 0x1 |
| 921 | #define ASN1_PKEY_DYNAMIC 0x2 | 901 | #define ASN1_PKEY_DYNAMIC 0x2 |
| 922 | #define ASN1_PKEY_SIGPARAM_NULL 0x4 | 902 | #define ASN1_PKEY_SIGPARAM_NULL 0x4 |
diff --git a/src/lib/libcrypto/evp/evp_local.h b/src/lib/libcrypto/evp/evp_local.h index 65d23547bc..0e6b6bdfa2 100644 --- a/src/lib/libcrypto/evp/evp_local.h +++ b/src/lib/libcrypto/evp/evp_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_local.h,v 1.16 2024/02/18 15:43:21 tb Exp $ */ | 1 | /* $OpenBSD: evp_local.h,v 1.17 2024/03/02 10:06:48 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -373,6 +373,9 @@ struct evp_aead_ctx_st { | |||
| 373 | void *aead_state; | 373 | void *aead_state; |
| 374 | }; | 374 | }; |
| 375 | 375 | ||
| 376 | int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, | ||
| 377 | ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de); | ||
| 378 | |||
| 376 | int EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str); | 379 | int EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str); |
| 377 | int EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex); | 380 | int EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex); |
| 378 | int EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md_name); | 381 | int EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md_name); |
diff --git a/src/lib/libcrypto/evp/evp_pbe.c b/src/lib/libcrypto/evp/evp_pbe.c index eb8d5c4157..e33f2cb08f 100644 --- a/src/lib/libcrypto/evp/evp_pbe.c +++ b/src/lib/libcrypto/evp/evp_pbe.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_pbe.c,v 1.42 2024/02/18 15:45:42 tb Exp $ */ | 1 | /* $OpenBSD: evp_pbe.c,v 1.43 2024/03/02 10:06:48 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -640,41 +640,3 @@ PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, | |||
| 640 | return ret; | 640 | return ret; |
| 641 | } | 641 | } |
| 642 | LCRYPTO_ALIAS(PKCS12_PBE_keyivgen); | 642 | LCRYPTO_ALIAS(PKCS12_PBE_keyivgen); |
| 643 | |||
| 644 | /* | ||
| 645 | * XXX - remove the functions below in the next major bump | ||
| 646 | */ | ||
| 647 | |||
| 648 | int | ||
| 649 | EVP_PBE_find(int type, int pbe_nid, int *out_cipher_nid, int *out_md_nid, | ||
| 650 | EVP_PBE_KEYGEN **out_keygen) | ||
| 651 | { | ||
| 652 | EVPerror(ERR_R_DISABLED); | ||
| 653 | return 0; | ||
| 654 | } | ||
| 655 | |||
| 656 | int | ||
| 657 | EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, int md_nid, | ||
| 658 | EVP_PBE_KEYGEN *keygen) | ||
| 659 | { | ||
| 660 | EVPerror(ERR_R_DISABLED); | ||
| 661 | return 0; | ||
| 662 | } | ||
| 663 | |||
| 664 | int | ||
| 665 | EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md, | ||
| 666 | EVP_PBE_KEYGEN *keygen) | ||
| 667 | { | ||
| 668 | EVPerror(ERR_R_DISABLED); | ||
| 669 | return 0; | ||
| 670 | } | ||
| 671 | |||
| 672 | void | ||
| 673 | EVP_PBE_cleanup(void) | ||
| 674 | { | ||
| 675 | } | ||
| 676 | |||
| 677 | void | ||
| 678 | PKCS5_PBE_add(void) | ||
| 679 | { | ||
| 680 | } | ||
