diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-22 16:53:43 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-22 16:53:43 +0100 |
| commit | 80c311262daf19f796a190cc99e850d199315c0a (patch) | |
| tree | 292b3978778be0f4994f23566ed241d6e9013d8a | |
| parent | e83abe9fdbab07e6df80443240d4d649303a3dd4 (diff) | |
| download | lilliput-ae-implem-80c311262daf19f796a190cc99e850d199315c0a.tar.xz | |
[WIP][implem-python] Intégration à la soumission
| -rwxr-xr-x | nist/make-package.sh | 2 | ||||
| -rwxr-xr-x | nist/package-python.sh | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/nist/make-package.sh b/nist/make-package.sh index 234532a..c3bbd32 100755 --- a/nist/make-package.sh +++ b/nist/make-package.sh @@ -116,3 +116,5 @@ done cp -r ${TMP_DIR}/crypto_aead . cleanup + +${NIST_DIR}/package-python.sh diff --git a/nist/package-python.sh b/nist/package-python.sh new file mode 100755 index 0000000..4813dc7 --- /dev/null +++ b/nist/package-python.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -eu + +NIST_DIR=$(dirname $0) +ROOT=${NIST_DIR}/.. +ADD_PYTHON=${ROOT}/src/add_python +CRYPTO_AEAD=${ROOT}/crypto_aead + + +add-variant () +{ + local mode=$1 + local keylen=$2 + + local -A names=([1]=lilliputaei [2]=lilliputaeii) + + variant_dir=${CRYPTO_AEAD}/${names[${mode}]}${keylen}v1 + + cp -r ${ADD_PYTHON} ${variant_dir} + + cat <<EOF > ${variant_dir}/add_python/parameters.py +MODE = ${mode} +KEYBYTES = $((keylen/8)) +EOF +} + + +for mode in 1 2 +do + for keylen in 128 192 256 + do + add-variant ${mode} ${keylen} + done +done |
