summaryrefslogtreecommitdiff
path: root/test/python/compare.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-22 16:41:34 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-22 16:52:21 +0100
commite83abe9fdbab07e6df80443240d4d649303a3dd4 (patch)
tree76febb030151dff29ef62a4b27145ed73bd57b42 /test/python/compare.sh
parentba01ba773731cb2c906beb6855dfea588dc8cf09 (diff)
downloadlilliput-ae-implem-e83abe9fdbab07e6df80443240d4d649303a3dd4.tar.xz
[implem-python] Déplacement dans le dossier SOUMISSION_NIST
Et ajout d'un métascript pour vérifier la conformité. Il ne reste plus qu'à… (bis)
Diffstat (limited to 'test/python/compare.sh')
-rwxr-xr-xtest/python/compare.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/python/compare.sh b/test/python/compare.sh
new file mode 100755
index 0000000..414eb1e
--- /dev/null
+++ b/test/python/compare.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+PYTHON_DIR=$(dirname $0)
+ROOT_DIR=${PYTHON_DIR}/../../
+RESULTS_DIR=${ROOT_DIR}/results
+CRYPTO_AEAD=${ROOT_DIR}/crypto_aead
+
+set -eu
+
+mkdir -p ${RESULTS_DIR}/crypto_aead_ref
+for d in ${CRYPTO_AEAD}/lilliputaei*
+do
+ mkdir -p ${RESULTS_DIR}/crypto_aead_ref/$(basename $d)
+ cp $d/LWC*.txt ${RESULTS_DIR}/crypto_aead_ref/$(basename $d)/
+done
+
+diff -ru ${RESULTS_DIR}/crypto_aead_ref ${RESULTS_DIR}/crypto_aead_py