commit 499a04c70519f114ad14d9bbb01207a5fa9a15c3
parent 2bebfc0d0b77f586f77107d37cd6157e36f4420d
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date: Wed, 13 Mar 2019 18:15:15 +0100
Changement de la génération du nonce dans lilliput.py
Pour correspondre à genkat_aead.c.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/lilliput.py b/python/lilliput.py
@@ -59,7 +59,7 @@ def mainEnc(plaintext, adata, mode=1, length=128):
A = adata
M = plaintext
- N = [0 for byte in range(0, N_BYTES)]
+ N = [byte for byte in range(0, N_BYTES)]
key = [byte for byte in range(0, int(key_bits/8))]
A_BITS = 8 * len(A)
@@ -82,7 +82,7 @@ def mainDec(ciphertext, tag, adata, mode=1, length=128):
A = adata
C = ciphertext
- N = [0 for byte in range(0, N_BYTES)]
+ N = [byte for byte in range(0, N_BYTES)]
key = [byte for byte in range(0, int(key_bits/8))]
tag = list(tag)