summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des/cfb64ede.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/des/cfb64ede.c')
-rw-r--r--src/lib/libcrypto/des/cfb64ede.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/des/cfb64ede.c b/src/lib/libcrypto/des/cfb64ede.c
index 700a36620f..e91dbbfc4a 100644
--- a/src/lib/libcrypto/des/cfb64ede.c
+++ b/src/lib/libcrypto/des/cfb64ede.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cfb64ede.c,v 1.11 2023/07/08 07:11:07 beck Exp $ */ 1/* $OpenBSD: cfb64ede.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 *
@@ -178,13 +178,13 @@ DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out,
178 memmove(ovec, ovec + num/8, 178 memmove(ovec, ovec + num/8,
179 8 + (num % 8 ? 1 : 0)); 179 8 + (num % 8 ? 1 : 0));
180 /* now the remaining bits */ 180 /* now the remaining bits */
181 if (num % 8 != 0) 181 if (num % 8 != 0) {
182 for (i = 0; i < 8; ++i) 182 for (i = 0; i < 8; ++i) {
183 {
184 ovec[i] <<= num % 8; 183 ovec[i] <<= num % 8;
185 ovec[i] |= ovec[i + 1] >> 184 ovec[i] |= ovec[i + 1] >>
186 (8 - num % 8); 185 (8 - num % 8);
187 } 186 }
187 }
188 iv = &ovec[0]; 188 iv = &ovec[0];
189 c2l(iv, v0); 189 c2l(iv, v0);
190 c2l(iv, v1); 190 c2l(iv, v1);
@@ -216,13 +216,13 @@ DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out,
216 memmove(ovec, ovec + num/8, 216 memmove(ovec, ovec + num/8,
217 8 + (num % 8 ? 1 : 0)); 217 8 + (num % 8 ? 1 : 0));
218 /* now the remaining bits */ 218 /* now the remaining bits */
219 if (num % 8 != 0) 219 if (num % 8 != 0) {
220 for (i = 0; i < 8; ++i) 220 for (i = 0; i < 8; ++i) {
221 {
222 ovec[i] <<= num % 8; 221 ovec[i] <<= num % 8;
223 ovec[i] |= ovec[i + 1] >> 222 ovec[i] |= ovec[i + 1] >>
224 (8 - num % 8); 223 (8 - num % 8);
225 } 224 }
225 }
226 iv = &ovec[0]; 226 iv = &ovec[0];
227 c2l(iv, v0); 227 c2l(iv, v0);
228 c2l(iv, v1); 228 c2l(iv, v1);