From: Philipp Gesang Date: Thu, 16 Mar 2017 16:06:28 +0000 (+0100) Subject: redo transition between objects in crypto layer X-Git-Tag: v2.2~7^2~230 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=79782fa91bff603ce4287d378aeea4944ff5081d;p=python-delta-tar redo transition between objects in crypto layer When encrypting, the ciphertext size isn’t known beforehand. Likewise, the file name isn’t available when initializing the decryption of a file. --- 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 = "