summaryrefslogtreecommitdiff
path: root/src/ref
diff options
context:
space:
mode:
Diffstat (limited to 'src/ref')
-rw-r--r--src/ref/cipher.c4
-rw-r--r--src/ref/cipher.h4
-rw-r--r--src/ref/constants.h4
-rw-r--r--src/ref/implem.mk35
-rw-r--r--src/ref/lilliput-ae-utils.h4
-rw-r--r--src/ref/lilliput-ae.h4
-rw-r--r--src/ref/lilliput-i.c4
-rw-r--r--src/ref/lilliput-ii.c4
-rw-r--r--src/ref/tweakey.c4
-rw-r--r--src/ref/tweakey.h4
10 files changed, 62 insertions, 9 deletions
diff --git a/src/ref/cipher.c b/src/ref/cipher.c
index 48144d4..5f26cc9 100644
--- a/src/ref/cipher.c
+++ b/src/ref/cipher.c
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae
diff --git a/src/ref/cipher.h b/src/ref/cipher.h
index 8e4bd16..b84820d 100644
--- a/src/ref/cipher.h
+++ b/src/ref/cipher.h
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae
diff --git a/src/ref/constants.h b/src/ref/constants.h
index 6f17b40..6812fd8 100644
--- a/src/ref/constants.h
+++ b/src/ref/constants.h
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae
diff --git a/src/ref/implem.mk b/src/ref/implem.mk
new file mode 100644
index 0000000..f396696
--- /dev/null
+++ b/src/ref/implem.mk
@@ -0,0 +1,35 @@
+# This file sets some implementation-specific variables and defines
+# build dependencies.
+
+tests = $(basename $(wildcard test-*.c))
+traces = $(basename $(wildcard traces-*.c))
+
+
+# Program => additional objects dependencies
+
+$(results_dir)/test-tbc-decrypt $(results_dir)/test-tbc-encrypt $(results_dir)/traces-tbc: \
+$(results_dir)/src/cipher.o $(results_dir)/src/tweakey.o
+
+$(results_dir)/test-ae-decrypt $(results_dir)/test-ae-encrypt $(results_dir)/test-ae-roundtrip $(results_dir)/traces-ae: \
+$(results_dir)/src/lilliput-$(mode).o $(results_dir)/src/cipher.o \
+$(results_dir)/src/tweakey.o
+
+$(results_dir)/test-tweakey: $(results_dir)/src/tweakey.o
+
+# Object => headers dependencies
+
+$(results_dir)/$(src_dir)/cipher.o: $(src_dir)/cipher.h \
+$(src_dir)/tweakey.h $(variant_dir)/parameters.h
+
+$(results_dir)/$(src_dir)/lilliput-i.o $(results_dir)/$(src_dir)/lilliput-ii.o: \
+$(src_dir)/lilliput-ae.h $(src_dir)/cipher.h $(src_dir)/constants.h \
+$(variant_dir)/parameters.h
+
+$(results_dir)/$(src_dir)/tweakey.o: $(src_dir)/tweakey.h \
+$(src_dir)/constants.h $(variant_dir)/parameters.h
+
+$(results_dir)/test/test-tbc-encrypt.o $(results_dir)/test/test-tbc-decrypt.o $(results_dir)/test/traces-tbc.o: \
+$(src_dir)/cipher.h
+
+$(results_dir)/test/test-ae-encrypt.o $(results_dir)/test/test-ae-decrypt.o $(results_dir)/test/test-ae-roundtrip.o $(results_dir)/test/traces-ae.o: \
+$(src_dir)/lilliput-ae.h
diff --git a/src/ref/lilliput-ae-utils.h b/src/ref/lilliput-ae-utils.h
index d78d9ff..41acaf6 100644
--- a/src/ref/lilliput-ae-utils.h
+++ b/src/ref/lilliput-ae-utils.h
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae
diff --git a/src/ref/lilliput-ae.h b/src/ref/lilliput-ae.h
index 48721fe..acb24d2 100644
--- a/src/ref/lilliput-ae.h
+++ b/src/ref/lilliput-ae.h
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae
diff --git a/src/ref/lilliput-i.c b/src/ref/lilliput-i.c
index 5e91e4e..74248a9 100644
--- a/src/ref/lilliput-i.c
+++ b/src/ref/lilliput-i.c
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae
diff --git a/src/ref/lilliput-ii.c b/src/ref/lilliput-ii.c
index 7c02bce..a371521 100644
--- a/src/ref/lilliput-ii.c
+++ b/src/ref/lilliput-ii.c
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae
diff --git a/src/ref/tweakey.c b/src/ref/tweakey.c
index dd1a855..78c6060 100644
--- a/src/ref/tweakey.c
+++ b/src/ref/tweakey.c
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae
diff --git a/src/ref/tweakey.h b/src/ref/tweakey.h
index e461b43..dcda357 100644
--- a/src/ref/tweakey.h
+++ b/src/ref/tweakey.h
@@ -1,7 +1,9 @@
/*
Implementation of the Lilliput-AE tweakable block cipher.
-Author: Kévin Le Gouguec, 2019.
+Authors, hereby denoted as "the implementer":
+ Kévin Le Gouguec,
+ 2019.
For more information, feedback or questions, refer to our website:
https://paclido.fr/lilliput-ae