summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des
diff options
context:
space:
mode:
authorbeck <>2024-07-09 07:16:13 +0000
committerbeck <>2024-07-09 07:16:13 +0000
commitacad707751e8096cfc7ce1c4421220e82ace3313 (patch)
treefce49a2e6431c29a2aaf1e75e6037527ee08ae0d /src/lib/libcrypto/des
parenteaf0cc7dfbcf508f10642a264a5e1d74a9276116 (diff)
downloadopenbsd-acad707751e8096cfc7ce1c4421220e82ace3313.tar.gz
openbsd-acad707751e8096cfc7ce1c4421220e82ace3313.tar.bz2
openbsd-acad707751e8096cfc7ce1c4421220e82ace3313.zip
Hide DES global variables
ok tb@
Diffstat (limited to 'src/lib/libcrypto/des')
-rw-r--r--src/lib/libcrypto/des/enc_read.c3
-rw-r--r--src/lib/libcrypto/des/set_key.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/des/enc_read.c b/src/lib/libcrypto/des/enc_read.c
index 35704315e1..32f7547a3f 100644
--- a/src/lib/libcrypto/des/enc_read.c
+++ b/src/lib/libcrypto/des/enc_read.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enc_read.c,v 1.19 2024/05/24 19:16:53 tb Exp $ */ 1/* $OpenBSD: enc_read.c,v 1.20 2024/07/09 07:16:13 beck 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 *
@@ -67,6 +67,7 @@
67 */ 67 */
68 68
69int DES_rw_mode = DES_PCBC_MODE; 69int DES_rw_mode = DES_PCBC_MODE;
70LCRYPTO_ALIAS(DES_rw_mode);
70 71
71int 72int
72DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, 73DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
diff --git a/src/lib/libcrypto/des/set_key.c b/src/lib/libcrypto/des/set_key.c
index 0e7aab688c..9a9dcf7c52 100644
--- a/src/lib/libcrypto/des/set_key.c
+++ b/src/lib/libcrypto/des/set_key.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: set_key.c,v 1.27 2024/03/29 01:47:29 joshua Exp $ */ 1/* $OpenBSD: set_key.c,v 1.28 2024/07/09 07:16:13 beck 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 *
@@ -63,6 +63,7 @@
63#include "des_local.h" 63#include "des_local.h"
64 64
65int DES_check_key = 0; /* defaults to false */ 65int DES_check_key = 0; /* defaults to false */
66LCRYPTO_ALIAS(DES_check_key);
66 67
67static const unsigned char odd_parity[256] = { 68static const unsigned char odd_parity[256] = {
68 1, 1, 2, 2, 4, 4, 7, 7, 8, 8, 11, 11, 13, 13, 14, 14, 69 1, 1, 2, 2, 4, 4, 7, 7, 8, 8, 11, 11, 13, 13, 14, 14,