specify salt and version in ctor when encrypting
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 7 Apr 2017 07:29:27 +0000 (09:29 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commit48db09ba3124f192b24170372869837f7bcb7e7c
treed9af705e85dee95159e424739cd2aa67002b1110
parentf484f2d138d5b346dc6412a7625cbd239ab81794
specify salt and version in ctor when encrypting

Simplify the signature of Encrypt.next() by removing the salt and
version arguments: This will make the encryptor reuse the values
it already has which was either passed to or randomly generated
by the ctor. Currently there is no case where we’d need to change
the salt or version during encryption. When decrypting, the
values from the headers are used anyways so nothing changes over
there.
deltatar/crypto.py
deltatar/deltatar.py
deltatar/tarfile.py