summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des/xcbc_enc.c
diff options
context:
space:
mode:
authorjsing <>2023-07-08 07:34:34 +0000
committerjsing <>2023-07-08 07:34:34 +0000
commitf21447ceff21c91ccffb7bda7502d04bdc536012 (patch)
tree14fa0c0b3cfd9f5af3d0193d221ba10deb8fbcce /src/lib/libcrypto/des/xcbc_enc.c
parent903dc2a64c29e2f25074485b7e91d9844296b1f3 (diff)
downloadopenbsd-f21447ceff21c91ccffb7bda7502d04bdc536012.tar.gz
openbsd-f21447ceff21c91ccffb7bda7502d04bdc536012.tar.bz2
openbsd-f21447ceff21c91ccffb7bda7502d04bdc536012.zip
More style(9).
Diffstat (limited to 'src/lib/libcrypto/des/xcbc_enc.c')
-rw-r--r--src/lib/libcrypto/des/xcbc_enc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/des/xcbc_enc.c b/src/lib/libcrypto/des/xcbc_enc.c
index 754d989fbf..87f348a9ab 100644
--- a/src/lib/libcrypto/des/xcbc_enc.c
+++ b/src/lib/libcrypto/des/xcbc_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: xcbc_enc.c,v 1.11 2023/07/08 07:11:07 beck Exp $ */ 1/* $OpenBSD: xcbc_enc.c,v 1.12 2023/07/08 07:34:34 jsing 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 *
@@ -86,8 +86,7 @@ DES_xcbc_encrypt(const unsigned char *in, unsigned char *out,
86 if (enc) { 86 if (enc) {
87 c2l(iv, tout0); 87 c2l(iv, tout0);
88 c2l(iv, tout1); 88 c2l(iv, tout1);
89 for (l -= 8; l >= 0; l -= 8) 89 for (l -= 8; l >= 0; l -= 8) {
90 {
91 c2l(in, tin0); 90 c2l(in, tin0);
92 c2l(in, tin1); 91 c2l(in, tin1);
93 tin0 ^= tout0 ^ inW0; 92 tin0 ^= tout0 ^ inW0;
@@ -118,8 +117,7 @@ DES_xcbc_encrypt(const unsigned char *in, unsigned char *out,
118 } else { 117 } else {
119 c2l(iv, xor0); 118 c2l(iv, xor0);
120 c2l(iv, xor1); 119 c2l(iv, xor1);
121 for (l -= 8; l > 0; l -= 8) 120 for (l -= 8; l > 0; l -= 8) {
122 {
123 c2l(in, tin0); 121 c2l(in, tin0);
124 tin[0] = tin0 ^ outW0; 122 tin[0] = tin0 ^ outW0;
125 c2l(in, tin1); 123 c2l(in, tin1);