add input checks at API boundaries
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 10 Apr 2017 09:15:09 +0000 (11:15 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commit36b9932a9d37d2728a5b55df7869fa9601dc254f
treedc365f1e6f3b2632ecce3a6c2393613a276eeec3
parent6d08915c491a6bf6cf250af33c9ea328b60f6f9e
add input checks at API boundaries

Verify conformance of user-supplied inputs on a very basic level,
communicating violations via InvalidParameter exception.

Of course due to the limitations of the type systems these can’t
be made exhaustive. E. g. no effort is being made to inspect a
(passing) list or dict test for well-formed contents.
deltatar/crypto.py