summaryrefslogtreecommitdiff
path: root/python/lilliput_ae_1.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/lilliput_ae_1.py')
-rw-r--r--python/lilliput_ae_1.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/lilliput_ae_1.py b/python/lilliput_ae_1.py
index 9de753c..8b618d9 100644
--- a/python/lilliput_ae_1.py
+++ b/python/lilliput_ae_1.py
@@ -129,7 +129,7 @@ def TreatMessageDec(C, N, key) :
################################################################################
-def OCB3Enc(A, M, N, key) :
+def encrypt(A, M, N, key) :
K = list(key)
Auth = BuildAuth(TWEAK_BITS, A, K)
@@ -139,8 +139,9 @@ def OCB3Enc(A, M, N, key) :
return BlockbytesMatrixToBytes(C), bytes(tag)
-def OCB3Dec(A, C, N, tag, key) :
+def decrypt(A, C, N, tag, key) :
K = list(key)
+ tag = list(tag)
Auth = BuildAuth(TWEAK_BITS, A, K)
(Final, M) = TreatMessageDec(C, N, K)