summaryrefslogtreecommitdiff
path: root/nist/package-vhdl.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-07-04 10:34:02 +0200
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-07-04 10:42:25 +0200
commit14488f9a94e1a544cd3678bdb52f9676003980fb (patch)
tree33b59dbdda6c3d2433e7e9127270d92631f7f253 /nist/package-vhdl.sh
parentb5c0141c63604241b43c54a559d74942ff7ca8a0 (diff)
downloadlilliput-ae-implem-14488f9a94e1a544cd3678bdb52f9676003980fb.tar.xz
Ajout d'un fichier de version
L'idée étant que tous les scripts qui génèrent des dossiers au format crypto_aead consultent ce fichier au lieu de coder la version en dur. Un tag git pourrait probablement être utilisé au lieu d'un fichier. À réfléchir.
Diffstat (limited to 'nist/package-vhdl.sh')
-rwxr-xr-xnist/package-vhdl.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/nist/package-vhdl.sh b/nist/package-vhdl.sh
index 1f2eba9..b604ba4 100755
--- a/nist/package-vhdl.sh
+++ b/nist/package-vhdl.sh
@@ -5,6 +5,8 @@ set -eu
DEST_DIR=$1
NIST_DIR=$(dirname $0)
ROOT=${NIST_DIR}/..
+
+VERSION=$(${NIST_DIR}/version.sh)
ADD_VHDL=${ROOT}/src/add_vhdltbc
@@ -13,7 +15,7 @@ add-variant ()
local mode=$1
local keylen=$2
- local variant_dir=${DEST_DIR}/crypto_aead/lilliputae${mode}${keylen}v1
+ local variant_dir=${DEST_DIR}/crypto_aead/lilliputae${mode}${keylen}v${VERSION}
local implems=(
encrypt