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)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 7 Aug 2017 12:02:45 +0000 (14:02 +0200)
commit8cd37f3d3dd1bf7a2201dc959eab8bf108d5a01c
tree2abde622b6a05d146847c86dddba2ab231900b32
parentf37d0e0123746f3bf9b3d40ca799a6a44ab7c0f3
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