delay kdf until parameters are available from header
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 20 Mar 2017 10:48:38 +0000 (11:48 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commit0f26a2ef0d781a16f316359ea6dde1458d3b2823
tree724a8ca9ff1c4f67b157433958c0227bd0220880
parentcd77dadb58ea5f3ef29cc96b6c2f0abb32356c5b
delay kdf until parameters are available from header

When decrypting, initialize the key immediately if parameters and
salt are being passed to the ctor. Otherwise, just save the
passphrase in the object and run the KDF when ``.next()`` is
passed the required bits as part of a PDTCRYPT header.
deltatar/crypto.py