summaryrefslogtreecommitdiff
path: root/collect-traces.sh
diff options
context:
space:
mode:
Diffstat (limited to 'collect-traces.sh')
-rwxr-xr-xcollect-traces.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/collect-traces.sh b/collect-traces.sh
index 0b50adc..f4dc847 100755
--- a/collect-traces.sh
+++ b/collect-traces.sh
@@ -2,13 +2,27 @@
set -eu
+trace_type=$1
+
d=$(mktemp -d)
-for f in $(find . -name 'traces-*.txt')
+git apply ${trace_type}.patch
+
+for makefile in $(find crypto_aead -name Makefile)
do
- cp ${f} ${d}
+ implem_dir=$(dirname ${makefile})
+ make -C ${implem_dir} clean
+
+ [[ ${implem_dir} =~ lilliputae(i|ii)([0-9]+)v ]]
+
+ ae_type=${BASH_REMATCH[1]}
+ keysize=${BASH_REMATCH[2]}
+ make -C ${implem_dir} ${trace_type}-${keysize}-${ae_type}
+ cp ${implem_dir}/results/traces*.txt ${d}
done
-tar czf traces.tgz -C ${d} .
+tar czf ${trace_type}.tgz -C ${d} .
rm -r ${d}
+
+git apply --reverse ${trace_type}.patch