From: Thomas Jarosch Date: Tue, 3 Apr 2018 05:50:48 +0000 (+0200) Subject: Documentation improvements X-Git-Tag: v2.2~7^2~27 X-Git-Url: http://developer.intra2net.com/git/?p=python-delta-tar;a=commitdiff_plain;h=817cfffab477062c45bec095d853a070bc7cd0e4 Documentation improvements --- diff --git a/backup.py b/backup.py index 0351300..2c1bf27 100644 --- a/backup.py +++ b/backup.py @@ -96,7 +96,7 @@ if __name__ == "__main__": parser.add_argument("-r", "--restore", action='store_true', help="Restore a backup.") parser.add_argument("-R", "--recover", action='store_true', - help="Restore a backup with an index file.") + help="Recover a potentially damaged backup with an index file.") parser.add_argument("-f", "--full", action='store_true', help="Create a full backup.") parser.add_argument("-d", "--diff", action='store_true', diff --git a/deltatar/crypto.py b/deltatar/crypto.py index e19894f..cba2c35 100755 --- a/deltatar/crypto.py +++ b/deltatar/crypto.py @@ -60,7 +60,7 @@ for reading is exhausted. Initialization Vectors ------------------------------------------------------------------------------- -Initialization vectors are checked reuse during the lifetime of a decryptor. +Initialization vectors are checked for reuse during the lifetime of a decryptor. The fixed counters for metadata files cannot be reused and attempts to do so will cause a DuplicateIV error. This means the length of objects encrypted with a metadata counter is capped at 63 GB. @@ -322,7 +322,7 @@ PDTCRYPT_MAX_OBJ_SIZE_DEFAULT = 63 * (1 << 30) # 63 GB PDTCRYPT_MAX_OBJ_SIZE = PDTCRYPT_MAX_OBJ_SIZE_DEFAULT # index and info files are written on-the fly while encrypting so their -# counters must be available inadvance +# counters must be available in advance AES_GCM_IV_CNT_INFOFILE = 1 # constant AES_GCM_IV_CNT_INDEX = AES_GCM_IV_CNT_INFOFILE + 1 AES_GCM_IV_CNT_DATA = AES_GCM_IV_CNT_INDEX + 1 # also for multivolume