summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei192v1/ref/parameters.h
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-28 11:02:02 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-28 11:02:02 +0100
commit253ba2a44878542d50877fcc10461491ecd67085 (patch)
treecd66101a474d5555eff3253b31658d60e357a6ba /crypto_aead/lilliputaei192v1/ref/parameters.h
parent7bbd4e2aeb37430aa17e99e1f9acd2d31c2fc034 (diff)
downloadlilliput-ae-implem-253ba2a44878542d50877fcc10461491ecd67085.tar.xz
Ajout de Lilliput-AE-Ⅰ avec k=192 bits
Diffstat (limited to 'crypto_aead/lilliputaei192v1/ref/parameters.h')
-rw-r--r--crypto_aead/lilliputaei192v1/ref/parameters.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/crypto_aead/lilliputaei192v1/ref/parameters.h b/crypto_aead/lilliputaei192v1/ref/parameters.h
new file mode 100644
index 0000000..061fb63
--- /dev/null
+++ b/crypto_aead/lilliputaei192v1/ref/parameters.h
@@ -0,0 +1,23 @@
+#ifndef PARAMETERS_H
+#define PARAMETERS_H
+
+#define TWEAK_LENGTH_BITS 192
+#define KEY_LENGTH_BITS 192
+#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 36
+
+#endif /* PARAMETERS_H */