From 7178069e072dc0c922a3bf0263746f82020566ea Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Fri, 15 Mar 2019 07:58:01 +0100 Subject: [implem-python] Correction d'une typo --- python/lilliput_ae_2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/lilliput_ae_2.py b/python/lilliput_ae_2.py index f455f43..624fd93 100644 --- a/python/lilliput_ae_2.py +++ b/python/lilliput_ae_2.py @@ -85,14 +85,14 @@ def MessageEncryption(M, N, tag, key) : for j in range(0, l) : tweak = AddTagJ(tag, j) - padded_nounce = list(N) + [0x00] - encryption = ltbc.LilliputTBCEnc(tweak, key, padded_nounce) + padded_nonce = list(N) + [0x00] + encryption = ltbc.LilliputTBCEnc(tweak, key, padded_nonce) C.append(XorState(M[j], encryption)) if padding_bytes > 0: tweak = AddTagJ(tag, l) - padded_nounce = list(N) + [0x00] - encryption = ltbc.LilliputTBCEnc(tweak, key, padded_nounce) + padded_nonce = list(N) + [0x00] + encryption = ltbc.LilliputTBCEnc(tweak, key, padded_nonce) C.append(XorState(M[l], encryption)) return C -- cgit v1.2.3