diff options
| author | jsing <> | 2023-07-08 07:34:34 +0000 |
|---|---|---|
| committer | jsing <> | 2023-07-08 07:34:34 +0000 |
| commit | 504c63e0950c4057c00ed7e8f35975096b6c06e0 (patch) | |
| tree | 14fa0c0b3cfd9f5af3d0193d221ba10deb8fbcce /src/lib/libcrypto/des/xcbc_enc.c | |
| parent | affb326535372e10f40ad6d98bb7ad5366f19202 (diff) | |
| download | openbsd-504c63e0950c4057c00ed7e8f35975096b6c06e0.tar.gz openbsd-504c63e0950c4057c00ed7e8f35975096b6c06e0.tar.bz2 openbsd-504c63e0950c4057c00ed7e8f35975096b6c06e0.zip | |
More style(9).
Diffstat (limited to 'src/lib/libcrypto/des/xcbc_enc.c')
| -rw-r--r-- | src/lib/libcrypto/des/xcbc_enc.c | 8 |
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); |
