diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-12-17 15:26:12 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-12-17 15:51:39 +0100 |
| commit | 4dcf6e9afb6e30a94f1f88102975627cf7edbc84 (patch) | |
| tree | d1c83c2df181a7ce03d1ea003169a4e4674ac1df /src/ref/parameters.h | |
| parent | 265340a0542c1f9d46621258989a8c18249a028f (diff) | |
| download | lilliput-ae-implem-4dcf6e9afb6e30a94f1f88102975627cf7edbc84.tar.xz | |
Organisation des différentes implémentations
Au passage, officialisation de la version "i applications successives
de M pour calculer Mⁱ" du key schedule.
Diffstat (limited to 'src/ref/parameters.h')
| -rw-r--r-- | src/ref/parameters.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ref/parameters.h b/src/ref/parameters.h new file mode 100644 index 0000000..681a152 --- /dev/null +++ b/src/ref/parameters.h @@ -0,0 +1,20 @@ +#ifndef PARAMETERS_H +#define PARAMETERS_H + +#include "_parameters.h" + +#define TWEAKEY_LENGTH_BITS (TWEAK_LENGTH_BITS+KEY_LENGTH_BITS) +#define ROUND_TWEAKEY_LENGTH_BITS 64 +#define BLOCK_LENGTH_BITS 128 +#define NONCE_LENGTH_BITS 120 +#define TAG_LENGTH_BITS 128 + +#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) +#define BLOCK_BYTES (BLOCK_LENGTH_BITS/8) +#define NONCE_BYTES (NONCE_LENGTH_BITS/8) +#define TAG_BYTES (TAG_LENGTH_BITS/8) + +#endif /* PARAMETERS_H */ |
