summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-15 07:58:01 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-21 14:49:15 +0100
commit7178069e072dc0c922a3bf0263746f82020566ea (patch)
tree770ebcb5852b1f4c05f279852abde0244bdd192f
parent6d62f24fc34dae3c28f1b1cfed664bde3edbb1ec (diff)
downloadlilliput-ae-implem-7178069e072dc0c922a3bf0263746f82020566ea.tar.xz
[implem-python] Correction d'une typo
-rw-r--r--python/lilliput_ae_2.py8
1 files 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