diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-22 14:48:47 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-22 14:48:47 +0100 |
| commit | ba01ba773731cb2c906beb6855dfea588dc8cf09 (patch) | |
| tree | 5bdb557fa40184ece254845e0d2b422d9397445b /python/generate-vectors.sh | |
| parent | bac28f498c5fee10720c8ed71988434e05d9197f (diff) | |
| download | lilliput-ae-implem-ba01ba773731cb2c906beb6855dfea588dc8cf09.tar.xz | |
[implem-python] Création de la surcouche "crypto_aead"
Il ne reste plus qu'à générer les dossiers lilliputae*/add_python et
les fichiers parameters.py correspondants, et on peut ajouter le tout
à l'archive à soumettre au NIST.
Diffstat (limited to 'python/generate-vectors.sh')
| -rwxr-xr-x | python/generate-vectors.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/python/generate-vectors.sh b/python/generate-vectors.sh new file mode 100755 index 0000000..90b5840 --- /dev/null +++ b/python/generate-vectors.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -eu + +rm -rf results + +mkdir -p results/crypto_aead/lilliputae{i,ii}{128,192,256}v1 + +declare -A names=([1]=lilliputaei [2]=lilliputaeii) + +for mode in 1 2 +do + for keylen in 128 192 256 + do + echo generating for ${mode} ${keylen} + + cat <<EOF > results/parameters.py +MODE = ${mode} +KEYBYTES = $((keylen/8)) +EOF + + PYTHONPATH=results ./genkat_aead.py + + dest=results/crypto_aead/${names[${mode}]}${keylen}v1 + mv LWC_AEAD_KAT_${keylen}_120.txt ${dest} + done +done |
