summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/tweakey.h
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-20 15:18:37 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-20 15:18:37 +0100
commit715ca44396acc009ed57f904d523fcc72031b4d3 (patch)
treeb85be5e4fc28a48ccfe36ec18bd77887c19dc961 /crypto_aead/lilliputaei128v1/ref/tweakey.h
parentc5f787cb8cd6d2841e3d46446c0a571eade891dc (diff)
downloadlilliput-ae-implem-715ca44396acc009ed57f904d523fcc72031b4d3.tar.xz
Implémentation de l'extraction du tweakey
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/tweakey.h')
-rw-r--r--crypto_aead/lilliputaei128v1/ref/tweakey.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/tweakey.h b/crypto_aead/lilliputaei128v1/ref/tweakey.h
index d5d2be3..6d575b8 100644
--- a/crypto_aead/lilliputaei128v1/ref/tweakey.h
+++ b/crypto_aead/lilliputaei128v1/ref/tweakey.h
@@ -7,17 +7,19 @@
#define TWEAK_LENGTH_BITS 192
#define KEY_LENGTH_BITS 128
+#define TWEAKEY_LENGTH_BITS (TWEAK_LENGTH_BITS+KEY_LENGTH_BITS)
#define ROUND_TWEAKEY_LENGTH_BITS 64
#define TWEAK_BYTES (TWEAK_LENGTH_BITS/8)
#define KEY_BYTES (KEY_LENGTH_BITS/8)
+#define TWEAKEY_BYTES (TWEAKEY_LENGTH_BITS/8)
#define ROUND_TWEAKEY_BYTES (ROUND_TWEAKEY_LENGTH_BITS/8)
struct tweakey_state
{
FILE* debug;
- uint8_t TK[TWEAK_BYTES+KEY_BYTES];
+ uint8_t TK[TWEAKEY_BYTES];
};
typedef struct tweakey_state tweakey_state;