diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-14 15:42:29 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-21 14:49:15 +0100 |
| commit | 6bb0c4369ec43c6c3a83e58c1906f4c1f0d3a0dd (patch) | |
| tree | a613cb209e3d31b645941f10f40d5ae50889eb8a /python/constants.py | |
| parent | 99c63c6699e6da600348a476ebbc52b783002d1b (diff) | |
| download | lilliput-ae-implem-6bb0c4369ec43c6c3a83e58c1906f4c1f0d3a0dd.tar.xz | |
[implem-python] Retrait de A_BITS/M_BITS (1/2)
En passant :
- remplacement de paramètres 0/1 par des booléens/des enums (pour
TweakMessage en particulier, ça simplifie pas mal la logique)
- construction de M (resp. C pour le déchiffrement) au fur et à
mesure, i.e. avec des listes vides, plutôt qu'en pré-allouant des
tableaux potentiellement trop gros en cas de padding
Diffstat (limited to 'python/constants.py')
| -rw-r--r-- | python/constants.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/constants.py b/python/constants.py index e8d8d03..764febb 100644 --- a/python/constants.py +++ b/python/constants.py @@ -1,4 +1,5 @@ -BLOCK_BYTES = 16 +BLOCK_BITS = 128 +BLOCK_BYTES = BLOCK_BITS//8 NONCE_BYTES = 15 |
