summaryrefslogtreecommitdiff
path: root/python/genkat_aead.py
diff options
context:
space:
mode:
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)