diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-12-17 15:48:45 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-12-17 15:51:39 +0100 |
| commit | 4565bb0ccc1bcd9af0ac62f5df9a87c5717c9284 (patch) | |
| tree | 29cb2bdb1ce946ead532b73d7aa25b8edff8f03d | |
| parent | 431aadf47ffc4635621a746481a39c83d7b2fdaa (diff) | |
| download | lilliput-ae-implem-4565bb0ccc1bcd9af0ac62f5df9a87c5717c9284.tar.xz | |
Adaptation du script de génération de livraison pour le NIST
| -rwxr-xr-x | nist/make-package.sh | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/nist/make-package.sh b/nist/make-package.sh index ef7de9b..36ded53 100755 --- 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 } |
