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)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commitb12110dd33e6687669d29ad45a05db835de1c182
tree22f61cb00ad42677ecad6f73e9968afb10068379
parent891317457baebdaea23b50b7593a3d424fb13796
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