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)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 20 Mar 2017 10:50:29 +0000 (11:50 +0100)
commitc4a8e19c1ed08d8bdbbaab42cc9feb24f02eeb46
tree8a46d7f2174ccf9d2484f36b647f3fba33049a1b
parent9ccd587bc98f6e747b33bf9879d0ef1703b2594e
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