summaryrefslogtreecommitdiff
path: root/lib/libcrypto/des
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-07-31 05:04:07 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-07-31 05:04:07 +0000
commitfeab7ee402c0cd07552b9b486f74040dec21823c (patch)
tree4cc82dcc4c9d550d2dd26235920a1e31011edabe /lib/libcrypto/des
parent7bd20a387a6e2bbbca5ba752677e3dd8368caa1c (diff)
Remove more *_options() stuff
The public symbols were removed. Some prototypes and in the case of DES even the implementation remained. ok jsing
Diffstat (limited to 'lib/libcrypto/des')
-rw-r--r--lib/libcrypto/des/des.h3
-rw-r--r--lib/libcrypto/des/ecb_enc.c42
2 files changed, 2 insertions, 43 deletions
diff --git a/lib/libcrypto/des/des.h b/lib/libcrypto/des/des.h
index ef2ecb4d03d..bc5d35f37d5 100644
--- a/lib/libcrypto/des/des.h
+++ b/lib/libcrypto/des/des.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: des.h,v 1.20 2023/07/08 07:11:07 beck Exp $ */
+/* $OpenBSD: des.h,v 1.21 2023/07/31 05:04:06 tb Exp $ */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -107,7 +107,6 @@ typedef struct DES_ks {
extern int DES_check_key; /* defaults to false */
extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */
-const char *DES_options(void);
void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,
DES_key_schedule *ks1, DES_key_schedule *ks2,
DES_key_schedule *ks3, int enc);
diff --git a/lib/libcrypto/des/ecb_enc.c b/lib/libcrypto/des/ecb_enc.c
index 7cc8cc687f8..3599fb812fb 100644
--- a/lib/libcrypto/des/ecb_enc.c
+++ b/lib/libcrypto/des/ecb_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecb_enc.c,v 1.18 2023/07/08 07:11:07 beck Exp $ */
+/* $OpenBSD: ecb_enc.c,v 1.19 2023/07/31 05:04:06 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -60,46 +60,6 @@
#include <openssl/opensslv.h>
#include <openssl/bio.h>
-const char *
-DES_options(void)
-{
- static int init = 1;
- static char buf[32];
-
- if (init) {
- const char *ptr, *unroll, *risc, *size;
-
-#ifdef DES_PTR
- ptr = "ptr";
-#else
- ptr = "idx";
-#endif
-#if defined(DES_RISC1) || defined(DES_RISC2)
-#ifdef DES_RISC1
- risc = "risc1";
-#endif
-#ifdef DES_RISC2
- risc = "risc2";
-#endif
-#else
- risc = "cisc";
-#endif
-#ifdef DES_UNROLL
- unroll = "16";
-#else
- unroll = "2";
-#endif
- if (sizeof(DES_LONG) != sizeof(long))
- size = "int";
- else
- size = "long";
- snprintf(buf, sizeof buf, "des(%s,%s,%s,%s)", ptr, risc, unroll,
- size);
- init = 0;
- }
- return (buf);
-}
-
void
DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,
DES_key_schedule *ks, int enc)