summaryrefslogtreecommitdiff
path: root/python/genkat_aead.py
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-14 11:15:35 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-21 14:49:15 +0100
commitd8eeb99d9106b93c0a30e3ab8849d7687d2a6f29 (patch)
tree6f314d9837839ee30382af44e70d2b0878c9b40f /python/genkat_aead.py
parent95e1596db04fd55d777a1fccf031e86657ab1072 (diff)
downloadlilliput-ae-implem-d8eeb99d9106b93c0a30e3ab8849d7687d2a6f29.tar.xz
[implem-python] Simplification du contrôle des paramètres
Encore un peu de duplication sur les longueurs de clés valides. On y travaille.
Diffstat (limited to 'python/genkat_aead.py')
-rwxr-xr-xpython/genkat_aead.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/genkat_aead.py b/python/genkat_aead.py
index 3a69d72..6d7ca51 100755
--- a/python/genkat_aead.py
+++ b/python/genkat_aead.py
@@ -64,11 +64,11 @@ def generate_test_vectors(mode, keylen):
print_bstr(output, 'PT', msg)
print_bstr(output, 'AD', ad)
- ct, tag = lilliput.mainEnc(msg, ad, key, nonce, mode, keylen)
+ ct, tag = lilliput.mainEnc(msg, ad, key, nonce, mode)
print_bstr(output, 'CT', ct+tag)
- msg2 = lilliput.mainDec(ct, tag, ad, key, nonce, mode, keylen)
+ msg2 = lilliput.mainDec(ct, tag, ad, key, nonce, mode)
if msg != msg2:
raise DecryptionError(msg, msg2, mode, keylen)