summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-07-31 05:04:06 +0000
committertb <>2023-07-31 05:04:06 +0000
commit2ba777b8828dfdfc3a7a4c7048e55ea4cb4b4b66 (patch)
treede34abc6e618c5cff9f84c79d2cebc3f90d1c75b
parent991a4fd1cbb1ae03ca9dd7670eebac91d5e52c07 (diff)
downloadopenbsd-2ba777b8828dfdfc3a7a4c7048e55ea4cb4b4b66.tar.gz
openbsd-2ba777b8828dfdfc3a7a4c7048e55ea4cb4b4b66.tar.bz2
openbsd-2ba777b8828dfdfc3a7a4c7048e55ea4cb4b4b66.zip
Remove more *_options() stuff
The public symbols were removed. Some prototypes and in the case of DES even the implementation remained. ok jsing
-rw-r--r--src/lib/libcrypto/aes/aes.h4
-rw-r--r--src/lib/libcrypto/bf/blowfish.h3
-rw-r--r--src/lib/libcrypto/bn/bn.h3
-rw-r--r--src/lib/libcrypto/des/des.h3
-rw-r--r--src/lib/libcrypto/des/ecb_enc.c42
5 files changed, 5 insertions, 50 deletions
diff --git a/src/lib/libcrypto/aes/aes.h b/src/lib/libcrypto/aes/aes.h
index c904485d8f..702873e11c 100644
--- a/src/lib/libcrypto/aes/aes.h
+++ b/src/lib/libcrypto/aes/aes.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: aes.h,v 1.14 2014/07/09 09:10:07 miod Exp $ */ 1/* $OpenBSD: aes.h,v 1.15 2023/07/31 05:04:06 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -79,8 +79,6 @@ struct aes_key_st {
79}; 79};
80typedef struct aes_key_st AES_KEY; 80typedef struct aes_key_st AES_KEY;
81 81
82const char *AES_options(void);
83
84int AES_set_encrypt_key(const unsigned char *userKey, const int bits, 82int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
85 AES_KEY *key); 83 AES_KEY *key);
86int AES_set_decrypt_key(const unsigned char *userKey, const int bits, 84int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
diff --git a/src/lib/libcrypto/bf/blowfish.h b/src/lib/libcrypto/bf/blowfish.h
index 592bd83146..b434e70cbb 100644
--- a/src/lib/libcrypto/bf/blowfish.h
+++ b/src/lib/libcrypto/bf/blowfish.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: blowfish.h,v 1.16 2022/11/11 12:08:29 jsing Exp $ */ 1/* $OpenBSD: blowfish.h,v 1.17 2023/07/31 05:04:06 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 *
@@ -102,7 +102,6 @@ void BF_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length,
102 const BF_KEY *schedule, unsigned char *ivec, int *num, int enc); 102 const BF_KEY *schedule, unsigned char *ivec, int *num, int enc);
103void BF_ofb64_encrypt(const unsigned char *in, unsigned char *out, long length, 103void BF_ofb64_encrypt(const unsigned char *in, unsigned char *out, long length,
104 const BF_KEY *schedule, unsigned char *ivec, int *num); 104 const BF_KEY *schedule, unsigned char *ivec, int *num);
105const char *BF_options(void);
106 105
107#ifdef __cplusplus 106#ifdef __cplusplus
108} 107}
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index 62c85d1855..e00953ea2c 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn.h,v 1.74 2023/07/28 10:07:30 tb Exp $ */ 1/* $OpenBSD: bn.h,v 1.75 2023/07/31 05:04:06 tb Exp $ */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -318,7 +318,6 @@ void BN_zero(BIGNUM *a);
318int BN_one(BIGNUM *a); 318int BN_one(BIGNUM *a);
319 319
320const BIGNUM *BN_value_one(void); 320const BIGNUM *BN_value_one(void);
321char * BN_options(void);
322BN_CTX *BN_CTX_new(void); 321BN_CTX *BN_CTX_new(void);
323void BN_CTX_free(BN_CTX *c); 322void BN_CTX_free(BN_CTX *c);
324void BN_CTX_start(BN_CTX *ctx); 323void BN_CTX_start(BN_CTX *ctx);
diff --git a/src/lib/libcrypto/des/des.h b/src/lib/libcrypto/des/des.h
index ef2ecb4d03..bc5d35f37d 100644
--- a/src/lib/libcrypto/des/des.h
+++ b/src/lib/libcrypto/des/des.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: des.h,v 1.20 2023/07/08 07:11:07 beck Exp $ */ 1/* $OpenBSD: des.h,v 1.21 2023/07/31 05:04:06 tb Exp $ */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -107,7 +107,6 @@ typedef struct DES_ks {
107extern int DES_check_key; /* defaults to false */ 107extern int DES_check_key; /* defaults to false */
108extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */ 108extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */
109 109
110const char *DES_options(void);
111void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, 110void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,
112 DES_key_schedule *ks1, DES_key_schedule *ks2, 111 DES_key_schedule *ks1, DES_key_schedule *ks2,
113 DES_key_schedule *ks3, int enc); 112 DES_key_schedule *ks3, int enc);
diff --git a/src/lib/libcrypto/des/ecb_enc.c b/src/lib/libcrypto/des/ecb_enc.c
index 7cc8cc687f..3599fb812f 100644
--- a/src/lib/libcrypto/des/ecb_enc.c
+++ b/src/lib/libcrypto/des/ecb_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecb_enc.c,v 1.18 2023/07/08 07:11:07 beck Exp $ */ 1/* $OpenBSD: ecb_enc.c,v 1.19 2023/07/31 05:04:06 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 *
@@ -60,46 +60,6 @@
60#include <openssl/opensslv.h> 60#include <openssl/opensslv.h>
61#include <openssl/bio.h> 61#include <openssl/bio.h>
62 62
63const char *
64DES_options(void)
65{
66 static int init = 1;
67 static char buf[32];
68
69 if (init) {
70 const char *ptr, *unroll, *risc, *size;
71
72#ifdef DES_PTR
73 ptr = "ptr";
74#else
75 ptr = "idx";
76#endif
77#if defined(DES_RISC1) || defined(DES_RISC2)
78#ifdef DES_RISC1
79 risc = "risc1";
80#endif
81#ifdef DES_RISC2
82 risc = "risc2";
83#endif
84#else
85 risc = "cisc";
86#endif
87#ifdef DES_UNROLL
88 unroll = "16";
89#else
90 unroll = "2";
91#endif
92 if (sizeof(DES_LONG) != sizeof(long))
93 size = "int";
94 else
95 size = "long";
96 snprintf(buf, sizeof buf, "des(%s,%s,%s,%s)", ptr, risc, unroll,
97 size);
98 init = 0;
99 }
100 return (buf);
101}
102
103void 63void
104DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, 64DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,
105 DES_key_schedule *ks, int enc) 65 DES_key_schedule *ks, int enc)