do not discard valid data in buffers when in tolerant mode
[python-delta-tar] / deltatar / crypto.py
index 930d1f9..16c50d1 100755 (executable)
@@ -818,6 +818,14 @@ class Crypto (object):
         return self.stats ["obj"], self.stats ["in"], self.stats ["out"]
 
 
+    def drop (self):
+        """
+        Clear the current context regardless of its finalization state. The
+        next operation must be ``.next()``.
+        """
+        self.enc = None
+
+
 class Encrypt (Crypto):
 
     lastinfo     = None