summaryrefslogtreecommitdiff
path: root/src/ref/constants.h
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-05-21 11:06:56 +0200
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-05-21 11:08:02 +0200
commit6b38ac5bfda54e8e28554c6a38092941a477c479 (patch)
treed3840e160cd96eab81723e301bf106a888d46d51 /src/ref/constants.h
parent5d6317a9072695839871d0e0add25eefaf53cd19 (diff)
downloadlilliput-ae-implem-6b38ac5bfda54e8e28554c6a38092941a477c479.tar.xz
Extraction des multiplications hors de tweakey.c
De façon à ce que d'autres versions puissent réutiliser l'un ou l'autre.
Diffstat (limited to 'src/ref/constants.h')
-rw-r--r--src/ref/constants.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ref/constants.h b/src/ref/constants.h
index 6812fd8..d2da2a0 100644
--- a/src/ref/constants.h
+++ b/src/ref/constants.h
@@ -23,6 +23,7 @@ This file provides bit and byte lengths for input and output parameters.
#include "parameters.h"
#define TWEAKEY_LENGTH_BITS (TWEAK_LENGTH_BITS+KEY_LENGTH_BITS)
+#define LANE_BITS 64
#define ROUND_TWEAKEY_LENGTH_BITS 64
#define BLOCK_LENGTH_BITS 128
#define NONCE_LENGTH_BITS 120
@@ -31,6 +32,7 @@ This file provides bit and byte lengths for input and output parameters.
#define TWEAK_BYTES (TWEAK_LENGTH_BITS/8)
#define KEY_BYTES (KEY_LENGTH_BITS/8)
#define TWEAKEY_BYTES (TWEAKEY_LENGTH_BITS/8)
+#define LANE_BYTES (LANE_BITS/8)
#define ROUND_TWEAKEY_BYTES (ROUND_TWEAKEY_LENGTH_BITS/8)
#define BLOCK_BYTES (BLOCK_LENGTH_BITS/8)
#define NONCE_BYTES (NONCE_LENGTH_BITS/8)