Closed The-Skas closed 8 years ago
Nice one!
Can you instantiate the "key" variable (presumably to urandom(16)) in the pydoc, so that the fragment is actually valid (and all the petlib tests pass). Currently the test for "finalize" fails, as a result to the unknown variable "key" on line 248 :-)
Oops Sorry. Not sure what test is failing. I just found the yaml script, will try running it.
Tidied up a bit the actual exception thrown by "dec", and fixed the docstring. Nice work!
Comments clarifying that: the method quick_gcm_dec throws an exception, and the method finalize throws an exception on an invalid tag.