diff options
Diffstat (limited to 'src/lib/libcrypto/des/pcbc_enc.c')
-rw-r--r-- | src/lib/libcrypto/des/pcbc_enc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/des/pcbc_enc.c b/src/lib/libcrypto/des/pcbc_enc.c index 8574a44083..3a420f0136 100644 --- a/src/lib/libcrypto/des/pcbc_enc.c +++ b/src/lib/libcrypto/des/pcbc_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pcbc_enc.c,v 1.8 2023/07/08 07:11:07 beck Exp $ */ | 1 | /* $OpenBSD: pcbc_enc.c,v 1.9 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 | * |
@@ -75,8 +75,7 @@ DES_pcbc_encrypt(const unsigned char *input, unsigned char *output, | |||
75 | if (enc) { | 75 | if (enc) { |
76 | c2l(iv, xor0); | 76 | c2l(iv, xor0); |
77 | c2l(iv, xor1); | 77 | c2l(iv, xor1); |
78 | for (; length > 0; length -= 8) | 78 | for (; length > 0; length -= 8) { |
79 | { | ||
80 | if (length >= 8) { | 79 | if (length >= 8) { |
81 | c2l(in, sin0); | 80 | c2l(in, sin0); |
82 | c2l(in, sin1); | 81 | c2l(in, sin1); |
@@ -95,8 +94,7 @@ DES_pcbc_encrypt(const unsigned char *input, unsigned char *output, | |||
95 | } else { | 94 | } else { |
96 | c2l(iv, xor0); | 95 | c2l(iv, xor0); |
97 | c2l(iv, xor1); | 96 | c2l(iv, xor1); |
98 | for (; length > 0; length -= 8) | 97 | for (; length > 0; length -= 8) { |
99 | { | ||
100 | c2l(in, sin0); | 98 | c2l(in, sin0); |
101 | c2l(in, sin1); | 99 | c2l(in, sin1); |
102 | tin[0] = sin0; | 100 | tin[0] = sin0; |