From 715ca44396acc009ed57f904d523fcc72031b4d3 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 20 Nov 2018 15:18:37 +0100 Subject: Implémentation de l'extraction du tweakey MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crypto_aead/lilliputaei128v1/ref/tweakey.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crypto_aead/lilliputaei128v1/ref/tweakey.h') 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; -- cgit v1.2.3