shishi-commit
[Top][All Lists]
Advanced

[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 01:28:59 -0400

CVSROOT:        /cvsroot/shishi
Module name:    shishi
Branch:         
Changes by:     Simon Josefsson <address@hidden>        03/10/20 01:28:58

Modified files:
        crypto         : cbc-cts.c 

Log message:
        (cbc_cts_decrypt): Use last blocksize bytes.  (Incorrect?)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/crypto/cbc-cts.c.diff?tr1=1.8&tr2=1.9&r1=text&r2=text

Patches:
Index: shishi/crypto/cbc-cts.c
diff -u shishi/crypto/cbc-cts.c:1.8 shishi/crypto/cbc-cts.c:1.9
--- shishi/crypto/cbc-cts.c:1.8 Mon Oct 20 00:38:23 2003
+++ shishi/crypto/cbc-cts.c     Mon Oct 20 01:28:58 2003
@@ -111,5 +111,9 @@
       memcpy (iv + restbytes, dst + restbytes, block_size - restbytes);
       f (ctx, block_size, dst, iv);
       memxor (dst, tmpiv, block_size);
+      if ((length % block_size) == 0)
+       memcpy (iv, src + block_size, block_size);
+      else
+       memcpy (iv, src + restbytes, block_size);
     }
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]