Fix up check_consecutive_iv()
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 27 Jan 2020 15:21:27 +0000 (16:21 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 27 Jan 2020 17:23:24 +0000 (18:23 +0100)
It was using the wrong variable to store the previously used IV.

deltatar/crypto.py

index 4142808..d840e32 100755 (executable)
@@ -1355,7 +1355,7 @@ class Decrypt (Crypto):
             raise NonConsecutiveIV ("iv %s counter not successor of "
                                     "last object (expected %d, found %d)"
                                     % (fixed, iv_fmt (self.last_iv [1]), cnt))
-        self.last_iv = (iv, cnt)
+        self.last_iv = (fixed, cnt)
 
 
     def next (self, hdr):