summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/Symbols.list6
-rw-r--r--src/lib/libcrypto/evp/evp.h22
-rw-r--r--src/lib/libcrypto/evp/evp_local.h5
-rw-r--r--src/lib/libcrypto/evp/evp_pbe.c40
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
1269EVP_MD_type 1269EVP_MD_type
1270EVP_OpenFinal 1270EVP_OpenFinal
1271EVP_OpenInit 1271EVP_OpenInit
1272EVP_PBE_CipherInit
1273EVP_PBE_alg_add
1274EVP_PBE_alg_add_type
1275EVP_PBE_cleanup
1276EVP_PBE_find
1277EVP_PKCS82PKEY 1272EVP_PKCS82PKEY
1278EVP_PKEY2PKCS8 1273EVP_PKEY2PKCS8
1279EVP_PKEY_CTX_ctrl 1274EVP_PKEY_CTX_ctrl
@@ -2007,7 +2002,6 @@ PKCS12_unpack_p7data
2007PKCS12_unpack_p7encdata 2002PKCS12_unpack_p7encdata
2008PKCS12_verify_mac 2003PKCS12_verify_mac
2009PKCS1_MGF1 2004PKCS1_MGF1
2010PKCS5_PBE_add
2011PKCS5_PBE_keyivgen 2005PKCS5_PBE_keyivgen
2012PKCS5_PBKDF2_HMAC 2006PKCS5_PBKDF2_HMAC
2013PKCS5_PBKDF2_HMAC_SHA1 2007PKCS5_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
900void PKCS5_PBE_add(void);
901
902int 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
912int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, int md_nid,
913 EVP_PBE_KEYGEN *keygen);
914int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,
915 EVP_PBE_KEYGEN *keygen);
916int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,
917 EVP_PBE_KEYGEN **pkeygen);
918void 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
376int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen,
377 ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de);
378
376int EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str); 379int EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str);
377int EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex); 380int EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex);
378int EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md_name); 381int 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}
642LCRYPTO_ALIAS(PKCS12_PBE_keyivgen); 642LCRYPTO_ALIAS(PKCS12_PBE_keyivgen);
643
644/*
645 * XXX - remove the functions below in the next major bump
646 */
647
648int
649EVP_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
656int
657EVP_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
664int
665EVP_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
672void
673EVP_PBE_cleanup(void)
674{
675}
676
677void
678PKCS5_PBE_add(void)
679{
680}