From 499a04c70519f114ad14d9bbb01207a5fa9a15c3 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 13 Mar 2019 18:15:15 +0100 Subject: Changement de la génération du nonce dans lilliput.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour correspondre à genkat_aead.c. --- python/lilliput.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/lilliput.py b/python/lilliput.py index c2e1a69..92d8662 100644 --- 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) -- cgit v1.2.3