diff options
| author | tb <> | 2023-07-31 05:04:06 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-31 05:04:06 +0000 |
| commit | dc6989fcceeb8a299b2364670053a568ea83d2ff (patch) | |
| tree | de34abc6e618c5cff9f84c79d2cebc3f90d1c75b /src/lib/libcrypto/des | |
| parent | ac284d0a8a14d1a793bb65dfb2d65c8a87966bb0 (diff) | |
| download | openbsd-dc6989fcceeb8a299b2364670053a568ea83d2ff.tar.gz openbsd-dc6989fcceeb8a299b2364670053a568ea83d2ff.tar.bz2 openbsd-dc6989fcceeb8a299b2364670053a568ea83d2ff.zip | |
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 'src/lib/libcrypto/des')
| -rw-r--r-- | src/lib/libcrypto/des/des.h | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/des/ecb_enc.c | 42 |
2 files changed, 2 insertions, 43 deletions
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 { | |||
| 107 | extern int DES_check_key; /* defaults to false */ | 107 | extern int DES_check_key; /* defaults to false */ |
| 108 | extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */ | 108 | extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */ |
| 109 | 109 | ||
| 110 | const char *DES_options(void); | ||
| 111 | void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, | 110 | void 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 | ||
| 63 | const char * | ||
| 64 | DES_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 | |||
| 103 | void | 63 | void |
| 104 | DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, | 64 | DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, |
| 105 | DES_key_schedule *ks, int enc) | 65 | DES_key_schedule *ks, int enc) |
