summaryrefslogtreecommitdiff
path: root/src/add_tweakeysequences
diff options
context:
space:
mode:
Diffstat (limited to 'src/add_tweakeysequences')
-rw-r--r--src/add_tweakeysequences/tweakey.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/add_tweakeysequences/tweakey.c b/src/add_tweakeysequences/tweakey.c
index 9f71622..3ff6bb5 100644
--- a/src/add_tweakeysequences/tweakey.c
+++ b/src/add_tweakeysequences/tweakey.c
@@ -1,3 +1,23 @@
+/*
+Implementation of the Lilliput-AE tweakable block cipher.
+
+Author: Kévin Le Gouguec, 2019.
+
+For more information, feedback or questions, refer to our website:
+https://paclido.fr/lilliput-ae
+
+To the extent possible under law, the implementer has waived all copyright
+and related or neighboring rights to the source code in this file.
+http://creativecommons.org/publicdomain/zero/1.0/
+
+---
+
+This file provides an implementation of Lilliput-TBC's tweakey schedule,
+where multiplications by matrices M and M_R to the power n is performed by
+functions expressing the exponentiated matrices with shifts and XORs, with
+8×8 matrices M_1, M_2, M_3 and M_4 pre-computed as lookup tables.
+*/
+
#include <stdint.h>
#include <string.h>