diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/des/ecb_enc.c | 42 |
1 files changed, 1 insertions, 41 deletions
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) |
