summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des/cbc_cksm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/des/cbc_cksm.c')
-rw-r--r--src/lib/libcrypto/des/cbc_cksm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/des/cbc_cksm.c b/src/lib/libcrypto/des/cbc_cksm.c
index 640c124966..afa3f03d92 100644
--- a/src/lib/libcrypto/des/cbc_cksm.c
+++ b/src/lib/libcrypto/des/cbc_cksm.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cbc_cksm.c,v 1.9 2023/07/08 07:11:07 beck Exp $ */ 1/* $OpenBSD: cbc_cksm.c,v 1.10 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 *
@@ -71,8 +71,7 @@ DES_cbc_cksum(const unsigned char *in, DES_cblock *output,
71 71
72 c2l(iv, tout0); 72 c2l(iv, tout0);
73 c2l(iv, tout1); 73 c2l(iv, tout1);
74 for (; l > 0; l -= 8) 74 for (; l > 0; l -= 8) {
75 {
76 if (l >= 8) { 75 if (l >= 8) {
77 c2l(in, tin0); 76 c2l(in, tin0);
78 c2l(in, tin1); 77 c2l(in, tin1);