From 79782fa91bff603ce4287d378aeea4944ff5081d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 16 Mar 2017 17:06:28 +0100 Subject: [PATCH] redo transition between objects in crypto layer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When encrypting, the ciphertext size isn’t known beforehand. Likewise, the file name isn’t available when initializing the decryption of a file. --- deltatar/crypto.py | 25 +++++++++++-------------- 1 files changed, 11 insertions(+), 14 deletions(-) diff --git a/deltatar/crypto.py b/deltatar/crypto.py index 2ac588b..2d84ccc 100755 --- a/deltatar/crypto.py +++ b/deltatar/crypto.py @@ -93,6 +93,7 @@ HDR_OFF_PARAMVERSION = HDR_OFF_VERSION + I2N_HDR_SIZE_VERSION HDR_OFF_NACL = HDR_OFF_PARAMVERSION + I2N_HDR_SIZE_PARAMVERSION HDR_OFF_IV = HDR_OFF_NACL + I2N_HDR_SIZE_NACL HDR_OFF_CTSIZE = HDR_OFF_IV + I2N_HDR_SIZE_IV +HDR_CTSIZE_DUMMY = 0xffffFFFFffffFFFF FMT_UINT16_LE = "