From 6bb0c4369ec43c6c3a83e58c1906f4c1f0d3a0dd Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 14 Mar 2019 15:42:29 +0100 Subject: [implem-python] Retrait de A_BITS/M_BITS (1/2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- python/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/constants.py') 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 -- cgit v1.2.3