From f24a5cdcf0eec552f2d2edc73a7df156784ed7c0 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 12 Mar 2019 15:33:15 +0100 Subject: Utilisation d'un générateur d'aléa pour l'implémentation à seuil MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Un peu de machinerie à mettre en place pour permettre l'ajout de fichiers arbitraires dans une implémentation. --- src/ref/implem.mk | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/ref/implem.mk (limited to 'src/ref') 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 -- cgit v1.2.3 From 590327c8d81e42079c1fb215512ff5f306d33ab0 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 12 Mar 2019 15:46:48 +0100 Subject: Homogénéisation de la déclaration des auteurs des implémentations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ça m'embêtait qu'on liste plusieurs personnes, puis qu'on dise "the implementer has…" ; repompé le "hereby denoted…" de Keccak. --- src/add_threshold/cipher.c | 2 +- src/add_threshold/random.c | 4 +++- src/add_threshold/random.h | 4 +++- src/add_threshold/tweakey.c | 2 +- src/add_threshold/tweakey.h | 2 +- src/add_tweakeyloop/tweakey.c | 4 +++- src/i-128/parameters.h | 4 +++- src/i-192/parameters.h | 4 +++- src/i-256/parameters.h | 4 +++- src/ii-128/parameters.h | 4 +++- src/ii-192/parameters.h | 4 +++- src/ii-256/parameters.h | 4 +++- src/ref/cipher.c | 4 +++- src/ref/cipher.h | 4 +++- src/ref/constants.h | 4 +++- src/ref/lilliput-ae-utils.h | 4 +++- src/ref/lilliput-ae.h | 4 +++- src/ref/lilliput-i.c | 4 +++- src/ref/lilliput-ii.c | 4 +++- src/ref/tweakey.c | 4 +++- src/ref/tweakey.h | 4 +++- 21 files changed, 57 insertions(+), 21 deletions(-) (limited to 'src/ref') diff --git a/src/add_threshold/cipher.c b/src/add_threshold/cipher.c index 230582d..7efd4ae 100644 --- a/src/add_threshold/cipher.c +++ b/src/add_threshold/cipher.c @@ -1,7 +1,7 @@ /* Implementation of the Lilliput-AE tweakable block cipher. -Authors: +Authors, hereby denoted as "the implementer": Alexandre Adomnicai, Kévin Le Gouguec, Léo Reynaud, diff --git a/src/add_threshold/random.c b/src/add_threshold/random.c index 1bd9427..a966a8e 100644 --- a/src/add_threshold/random.c +++ b/src/add_threshold/random.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/add_threshold/random.h b/src/add_threshold/random.h index 12cae15..32ff4df 100644 --- a/src/add_threshold/random.h +++ b/src/add_threshold/random.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/add_threshold/tweakey.c b/src/add_threshold/tweakey.c index 097a79a..e228a69 100644 --- a/src/add_threshold/tweakey.c +++ b/src/add_threshold/tweakey.c @@ -1,7 +1,7 @@ /* Implementation of the Lilliput-AE tweakable block cipher. -Authors: +Authors, hereby denoted as "the implementer": Alexandre Adomnicai, Kévin Le Gouguec, Léo Reynaud, diff --git a/src/add_threshold/tweakey.h b/src/add_threshold/tweakey.h index ad2262b..f9ca722 100644 --- a/src/add_threshold/tweakey.h +++ b/src/add_threshold/tweakey.h @@ -1,7 +1,7 @@ /* Implementation of the Lilliput-AE tweakable block cipher. -Authors: +Authors, hereby denoted as "the implementer": Alexandre Adomnicai, Kévin Le Gouguec, Léo Reynaud, diff --git a/src/add_tweakeyloop/tweakey.c b/src/add_tweakeyloop/tweakey.c index b1f349e..3360a70 100644 --- a/src/add_tweakeyloop/tweakey.c +++ b/src/add_tweakeyloop/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/i-128/parameters.h b/src/i-128/parameters.h index b4c2f02..11ef889 100644 --- a/src/i-128/parameters.h +++ b/src/i-128/parameters.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/i-192/parameters.h b/src/i-192/parameters.h index aa1ea31..18d9e34 100644 --- a/src/i-192/parameters.h +++ b/src/i-192/parameters.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/i-256/parameters.h b/src/i-256/parameters.h index 5a9c029..4d23eae 100644 --- a/src/i-256/parameters.h +++ b/src/i-256/parameters.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/ii-128/parameters.h b/src/ii-128/parameters.h index aa73123..8e8dbc0 100644 --- a/src/ii-128/parameters.h +++ b/src/ii-128/parameters.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/ii-192/parameters.h b/src/ii-192/parameters.h index 531d56d..d5c6f89 100644 --- a/src/ii-192/parameters.h +++ b/src/ii-192/parameters.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/ii-256/parameters.h b/src/ii-256/parameters.h index 77d2f99..b6e1d34 100644 --- a/src/ii-256/parameters.h +++ b/src/ii-256/parameters.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/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/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 -- cgit v1.2.3