unify error and parameter handling in crypto.py
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 10 Apr 2017 08:13:02 +0000 (10:13 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 7 Aug 2017 12:02:46 +0000 (14:02 +0200)
commitfa28a9a360b9f45e0b78d717fc2244f0df8a384e
tree8c4dac8df2ade3faf4809a48a4e64167e7b628bb
parent2aaed698897caa8b8ceeeea4141ef828e94c7a61
unify error and parameter handling in crypto.py

Three classes of errors:

    - bad encryption (tag mismatch, bad IVs);
    - bad user input (request info counter twice);
    - internal error (state was reached that indicates a problem
      with crypto.py).
deltatar/crypto.py