add strict IV validation to decryption handler
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 18 Apr 2017 14:07:29 +0000 (16:07 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commitee6aa239710e38be852aab6da6c2471eb3980afd
tree709c879550377f66c19a54436fddc44d8b2b4d75
parent0165ca3c7e9ad9349324ee2a7ef07fcb2ff29e65
add strict IV validation to decryption handler

Optionally (on CLI, with the ā€œ-sā€ flag) check for additional IV
properties:

    - Accidental reuse: in GCM, the same IV used more than once
      means that the plaintext is compromised.

    - Unstructured archive: In the headers of a normal PDT
      encrypted archive, the variable parts of the IVs are
      consecutive unless the fixed part changes.
deltatar/crypto.py