lilliput-ae-reference-implementation

Implementations of Lilliput-AE submitted to the NIST LWC standardization process
git clone https://git.kevinlegouguec.net/lilliput-ae-reference-implementation
Log | Files | Refs | README

commit 4565bb0ccc1bcd9af0ac62f5df9a87c5717c9284
parent 431aadf47ffc4635621a746481a39c83d7b2fdaa
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Mon, 17 Dec 2018 15:48:45 +0100

Adaptation du script de génération de livraison pour le NIST

Diffstat:
Mnist/make-package.sh | 20+++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/nist/make-package.sh b/nist/make-package.sh @@ -39,11 +39,9 @@ add-variant () mode=$1 key_length=$2 variant=lilliputae${mode}${key_length}v1 - dest=${TMP_DIR}/crypto_aead/${variant}/ref + dest=${TMP_DIR}/crypto_aead/${variant} mkdir -p ${dest} - cp ${ROOT}/src/${mode}-${key_length}/_parameters.h ${dest} - cp ${NIST_DIR}/{api.h,encrypt.c} ${dest} source_files=( ae-common.h @@ -53,9 +51,21 @@ add-variant () tweakey.{c,h} ) - for f in ${source_files[@]} + implementations=( + ref + add_tabulatedtweakey + ) + + for implem in ${implementations[@]} do - cp ${ROOT}/src/${f} ${dest} + mkdir ${dest}/${implem} + cp ${ROOT}/src/${mode}-${key_length}/_parameters.h ${dest}/${implem} + cp ${NIST_DIR}/{api.h,encrypt.c} ${dest}/${implem} + + for f in ${source_files[@]} + do + cp ${ROOT}/src/${implem}/${f} ${dest}/${implem} + done done }