diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-13 18:15:15 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-13 18:15:15 +0100 |
| commit | 499a04c70519f114ad14d9bbb01207a5fa9a15c3 (patch) | |
| tree | 2398ec826f800d786381bd6b5d916cfb4249de4c /python | |
| parent | 2bebfc0d0b77f586f77107d37cd6157e36f4420d (diff) | |
| download | lilliput-ae-implem-499a04c70519f114ad14d9bbb01207a5fa9a15c3.tar.xz | |
Changement de la génération du nonce dans lilliput.py
Pour correspondre à genkat_aead.c.
Diffstat (limited to 'python')
| -rw-r--r-- | python/lilliput.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
