lilliput-ae-reference-implementation

Implementations of Lilliput-AE submitted to the NIST LWC standardization process
git clone https://git.kevinlegouguec.net/lilliput-ae-reference-implementation
Log | Files | Refs | README

commit 7178069e072dc0c922a3bf0263746f82020566ea
parent 6d62f24fc34dae3c28f1b1cfed664bde3edbb1ec
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Fri, 15 Mar 2019 07:58:01 +0100

[implem-python] Correction d'une typo

Diffstat:
Mpython/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 @@ -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