summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc2/rc2_cbc.c
diff options
context:
space:
mode:
authorbeck <>2023-07-07 13:40:44 +0000
committerbeck <>2023-07-07 13:40:44 +0000
commit6f5543ad3e9567cbb0c420be9104b1c9a41f8370 (patch)
tree4ff69f17732c4c2fea8cf75b4552dab0cd48119e /src/lib/libcrypto/rc2/rc2_cbc.c
parenta9cdc101468391df513beb27c13bf27170418093 (diff)
downloadopenbsd-6f5543ad3e9567cbb0c420be9104b1c9a41f8370.tar.gz
openbsd-6f5543ad3e9567cbb0c420be9104b1c9a41f8370.tar.bz2
openbsd-6f5543ad3e9567cbb0c420be9104b1c9a41f8370.zip
Hide symbols in lhash, pem, and rc2
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/rc2/rc2_cbc.c')
-rw-r--r--src/lib/libcrypto/rc2/rc2_cbc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rc2/rc2_cbc.c b/src/lib/libcrypto/rc2/rc2_cbc.c
index c4a58384db..1d8e2def99 100644
--- a/src/lib/libcrypto/rc2/rc2_cbc.c
+++ b/src/lib/libcrypto/rc2/rc2_cbc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rc2_cbc.c,v 1.7 2023/07/07 08:29:37 beck Exp $ */ 1/* $OpenBSD: rc2_cbc.c,v 1.8 2023/07/07 13:40:44 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 *
@@ -136,6 +136,7 @@ RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
136 tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0; 136 tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0;
137 tin[0] = tin[1] = 0; 137 tin[0] = tin[1] = 0;
138} 138}
139LCRYPTO_ALIAS(RC2_cbc_encrypt);
139 140
140void 141void
141RC2_encrypt(unsigned long *d, RC2_KEY *key) 142RC2_encrypt(unsigned long *d, RC2_KEY *key)
@@ -183,6 +184,7 @@ RC2_encrypt(unsigned long *d, RC2_KEY *key)
183 d[1] = (unsigned long)(x2 & 0xffff)|((unsigned long)(x3 & 0xffff) << 184 d[1] = (unsigned long)(x2 & 0xffff)|((unsigned long)(x3 & 0xffff) <<
184 16L); 185 16L);
185} 186}
187LCRYPTO_ALIAS(RC2_encrypt);
186 188
187void 189void
188RC2_decrypt(unsigned long *d, RC2_KEY *key) 190RC2_decrypt(unsigned long *d, RC2_KEY *key)
@@ -231,3 +233,4 @@ RC2_decrypt(unsigned long *d, RC2_KEY *key)
231 d[1] = (unsigned long)(x2 & 0xffff)|((unsigned long)(x3 & 0xffff) << 233 d[1] = (unsigned long)(x2 & 0xffff)|((unsigned long)(x3 & 0xffff) <<
232 16L); 234 16L);
233} 235}
236LCRYPTO_ALIAS(RC2_decrypt);