From: Thomas Jarosch Date: Mon, 27 Jan 2020 15:20:24 +0000 (+0100) Subject: Clarify two functions are meant to be used by desaster recovery X-Git-Tag: v2.2~7^2~16 X-Git-Url: http://developer.intra2net.com/git/?p=python-delta-tar;a=commitdiff_plain;h=d52e27375588c7062f7a99d27026995002c3d9af Clarify two functions are meant to be used by desaster recovery --- diff --git a/deltatar/crypto.py b/deltatar/crypto.py index 80850b3..4142808 100755 --- a/deltatar/crypto.py +++ b/deltatar/crypto.py @@ -529,7 +529,7 @@ def locate_hdr_candidates (fd): """ Walk over instances of the magic string in the payload, collecting their positions. If the offset of the first found instance is not zero, the file - begins with leading garbage. + begins with leading garbage. Used by desaster recovery. :return: The list of offsets in the file. """ @@ -615,7 +615,7 @@ def try_decrypt (ifd, off, hdr, secret, ofd=-1): Always creates a fresh decryptor, so validation steps across objects don’t apply. - Errors during GCM tag validation are ignored. + Errors during GCM tag validation are ignored. Used by desaster recovery. """ ctleft = hdr ["ctsize"] pos = off