diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-27 09:44:28 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-11-27 09:44:28 +0100 |
| commit | 0034747fd91b5d1b5d6375eb295a79f5221de84a (patch) | |
| tree | 7f894d5932ec2283d0184fe8c5dc8f054d4ac54b /crypto_aead/lilliputaeii128v1/ref/parameters.h | |
| parent | d14739644394986cb584acb45ed9b214dff1c501 (diff) | |
| download | lilliput-ae-implem-0034747fd91b5d1b5d6375eb295a79f5221de84a.tar.xz | |
Ajout de tests chiffrement/déchiffrement pour SCT-2
Diffstat (limited to 'crypto_aead/lilliputaeii128v1/ref/parameters.h')
| -rw-r--r-- | crypto_aead/lilliputaeii128v1/ref/parameters.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/crypto_aead/lilliputaeii128v1/ref/parameters.h b/crypto_aead/lilliputaeii128v1/ref/parameters.h new file mode 100644 index 0000000..f2ebe0a --- /dev/null +++ b/crypto_aead/lilliputaeii128v1/ref/parameters.h @@ -0,0 +1,23 @@ +#ifndef PARAMETERS_H +#define PARAMETERS_H + +#define TWEAK_LENGTH_BITS 128 +#define KEY_LENGTH_BITS 128 +#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) + + +#define ROUNDS 32 + +#endif /* PARAMETERS_H */ |
