add input checks at API boundaries
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 10 Apr 2017 09:15:09 +0000 (11:15 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 7 Aug 2017 12:02:46 +0000 (14:02 +0200)
commit8781fefdfbe3ed0563d261c55418ca1127cd996e
treec9cf1b64ca7511c7d6023b393a77561ef55166b1
parent41896bb841d91d7f005fc317183f2cff2a5179f0
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