summaryrefslogtreecommitdiff
path: root/src/parameters.h
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-28 13:42:48 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-28 13:44:54 +0100
commit98a7cb6d80f4151aebf6c1c0e76a2e9a22ab6e57 (patch)
tree6c38fe0873295a3186e9a0d82d798c0058b87c25 /src/parameters.h
parent253ba2a44878542d50877fcc10461491ecd67085 (diff)
downloadlilliput-ae-implem-98a7cb6d80f4151aebf6c1c0e76a2e9a22ab6e57.tar.xz
Dégraissage de parameters.h
Diffstat (limited to 'src/parameters.h')
-rw-r--r--src/parameters.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/parameters.h b/src/parameters.h
new file mode 100644
index 0000000..681a152
--- /dev/null
+++ b/src/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 */