diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-14 13:47:25 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-21 14:49:15 +0100 |
| commit | 9f999131bc6798e320432e71f3bfbcfbf20dc295 (patch) | |
| tree | 293d744cd33e952a7bacc2781d08f09592a1fa38 /python/constants.py | |
| parent | a1d3889f48a3fffd38a855fc433a9a3d3f649434 (diff) | |
| download | lilliput-ae-implem-9f999131bc6798e320432e71f3bfbcfbf20dc295.tar.xz | |
[implem-python] Confinement de la gestion des tours au module TBC
Retrait de quelques variables globales par la même occasion. Renommage
de "round" en "i" pour 1) coller à la spec 2) éviter le conflit avec
le builtin "round".
Diffstat (limited to 'python/constants.py')
| -rw-r--r-- | python/constants.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/python/constants.py b/python/constants.py index 02bbc1f..e8d8d03 100644 --- a/python/constants.py +++ b/python/constants.py @@ -2,15 +2,6 @@ BLOCK_BYTES = 16 NONCE_BYTES = 15 -def rounds(key_bits): - r = { - 128: 32, - 192: 36, - 256: 42 - } - return r[key_bits] - - Sbox = [32, 0, 178, 133, 59, 53, 166, 164, 48, 228, 106, 44, 255, 89, 226, 14, 248, 30, 122, 128, 21, 189, 62, 177, |
