summaryrefslogtreecommitdiff
path: root/lib/libc/crypt
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-05-14 16:08:59 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-05-14 16:08:59 +0000
commit36dd840cc90f4f3945c89ce58602ae052f123f47 (patch)
treebe4cede24ea88fd88723eeb68ba0db48039d2997 /lib/libc/crypt
parent72ac29b3cac5f29ef5e04c5c0dafee30d8b03b18 (diff)
CBC bug reported by Juergen Nickelsen <ni@tellique.de>
Diffstat (limited to 'lib/libc/crypt')
-rw-r--r--lib/libc/crypt/blowfish.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/crypt/blowfish.c b/lib/libc/crypt/blowfish.c
index 6cddbc64b39..8d7ae9141fd 100644
--- a/lib/libc/crypt/blowfish.c
+++ b/lib/libc/crypt/blowfish.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: blowfish.c,v 1.12 1998/08/30 22:35:39 niklas Exp $ */
+/* $OpenBSD: blowfish.c,v 1.13 1999/05/14 16:08:58 niklas Exp $ */
/*
* Blowfish block cipher for OpenBSD
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -711,7 +711,7 @@ blf_cbc_decrypt(c, iva, data, len)
data[7] = r & 0xff;
for (j = 0; j < 8; j++)
data[j] ^= iv[j];
- iv = data;
+ iv -= 8;
data -= 8;
}
l = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3];