[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shishi/crypto cbc-cts.c
From: |
shishi-commit |
Subject: |
shishi/crypto cbc-cts.c |
Date: |
Mon, 20 Oct 2003 00:38:23 -0400 |
CVSROOT: /cvsroot/shishi
Module name: shishi
Branch:
Changes by: Simon Josefsson <address@hidden> 03/10/20 00:38:23
Modified files:
crypto : cbc-cts.c
Log message:
Fix IV (now it uses last blocksize bytes, same as libgcrypt, but
perhaps using the next-to-last block is the correct way?).
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/crypto/cbc-cts.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: shishi/crypto/cbc-cts.c
diff -u shishi/crypto/cbc-cts.c:1.7 shishi/crypto/cbc-cts.c:1.8
--- shishi/crypto/cbc-cts.c:1.7 Sun Oct 19 19:46:06 2003
+++ shishi/crypto/cbc-cts.c Mon Oct 20 00:38:23 2003
@@ -69,7 +69,7 @@
memset (dst + restbytes, 0, block_size - restbytes);
memxor (iv, dst, block_size);
f (ctx, block_size, dst, iv);
- memcpy (iv, dst, block_size);
+ memcpy (iv, dst + restbytes, block_size);
}
}