Add dedicated tests for EAX mode

This commit is contained in:
Legrandin 2015-12-07 22:38:32 +01:00
parent ec4674c0a8
commit 2361b724b1
6 changed files with 586 additions and 121 deletions

View file

@ -172,5 +172,5 @@ def _create_ecb_cipher(factory, **kwargs):
cipher_state = factory._create_base_cipher(kwargs)
if kwargs:
raise ValueError("Unknown parameters for ECB: %s" % str(kwargs))
raise TypeError("Unknown parameters for ECB: %s" % str(kwargs))
return EcbMode(cipher_state)