turn API-mandated no-op into assertion
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Wed, 29 Jan 2020 10:03:54 +0000 (11:03 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 1 Feb 2020 13:42:43 +0000 (14:42 +0100)
commit366d4b42fefd6b94c7497fc42344d3744d692650
tree5ee204f2313d8cdc2559d4bf9d37aa63386cd848
parent04263795dfc82187bf5ef36f88648c9b8f7be25e
turn API-mandated no-op into assertion

Make it explicit that there cannot actually be a rest data when
finalizing an encrypted object. The Cryptography API mandates
that the caller handle the remainder of the data on finalization.
By virtue of being a stream cipher, the AES-GCM encoder always
returns the exact number of bytes that it was given so
technically the rest is meaningless.
testing/test_crypto.py