diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-21 11:22:08 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-21 11:22:08 +0100 |
| commit | 2df3f453fc584c9001404c3d2a74cb2059d94c0f (patch) | |
| tree | d81bd29417cf97b7f3e6e8bf8b0a1c6fdf71043d /crypto_aead/lilliputaei128v1/ref/tweakey.h | |
| parent | 1a8a1c0f98e39907af61d181d318fd45f3ce93ca (diff) | |
| download | lilliput-ae-implem-2df3f453fc584c9001404c3d2a74cb2059d94c0f.tar.xz | |
Introduction de l'entête "parameters.h"
Permet d'isoler les paramètres propres à la taille de clé et au mode ;
normalement, le reste du code devrait être strictement identique d'un
dossier à l'autre.
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/tweakey.h')
| -rw-r--r-- | crypto_aead/lilliputaei128v1/ref/tweakey.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/tweakey.h b/crypto_aead/lilliputaei128v1/ref/tweakey.h index 6d575b8..deff35f 100644 --- a/crypto_aead/lilliputaei128v1/ref/tweakey.h +++ b/crypto_aead/lilliputaei128v1/ref/tweakey.h @@ -4,16 +4,7 @@ #include <stdio.h> /* debug */ #include <stdint.h> - -#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) +#include "parameters.h" struct tweakey_state |
