Skip to content

Commit

Permalink
more friendly test folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
bhess committed Jan 24, 2024
1 parent 92a9cb7 commit b45a0e6
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# This script fetches the NIST vectors for the ML-KEM-ipd and ML-DSA-ipd and extracts the values we use for testing

wget https://csrc.nist.gov/csrc/media/Projects/post-quantum-cryptography/documents/example-files/PQC%20Intermediate%20Values.zip
unzip PQC\ Intermediate\ Values.zip
unzip PQC_Intermediate_Values.zip

file_keygen="PQC Intermediate Values/Key Generation -- "
file_signature="PQC Intermediate Values/Signature Generation -- "
file_verification="PQC Intermediate Values/Signature Verification -- "
file_keygen="PQC_Intermediate_Values/Key Generation -- "
file_signature="PQC_Intermediate_Values/Signature Generation -- "
file_verification="PQC_Intermediate_Values/Signature Verification -- "

for VARIANT in "ML-DSA-44" "ML-DSA-65" "ML-DSA-87"
do
Expand All @@ -27,9 +27,9 @@ do
grep "signature: " "$file_signature$VARIANT.txt" | sed "s/signature: /sig_signature: /g" >> "$VARIANT.txt"
done

file_keygen="PQC Intermediate Values/Key Generation -- "
file_encaps="PQC Intermediate Values/Encapsulation -- "
file_decaps="PQC Intermediate Values/Decapsulation -- "
file_keygen="PQC_Intermediate_Values/Key Generation -- "
file_encaps="PQC_Intermediate_Values/Encapsulation -- "
file_decaps="PQC_Intermediate_Values/Decapsulation -- "

for VARIANT in "ML-KEM-512" "ML-KEM-768" "ML-KEM-1024"
do
Expand Down
12 changes: 6 additions & 6 deletions tests/test_vectors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

if [ "$1" = "ML-DSA-44-ipd" ]; then

file=tests/PQC\ Intermediate\ Values/ML-DSA-44.txt
file=tests/PQC_Intermediate_Values/ML-DSA-44.txt
scheme_name=ML-DSA-44-ipd

sh tests/test_sig_vectors.sh "$scheme_name" "$file" "$build_dir"
Expand All @@ -19,7 +19,7 @@ if [ "$1" = "ML-DSA-44-ipd" ]; then

elif [ "$1" = "ML-DSA-65-ipd" ]; then

file=tests/PQC\ Intermediate\ Values/ML-DSA-65.txt
file=tests/PQC_Intermediate_Values/ML-DSA-65.txt
scheme_name=ML-DSA-65-ipd

sh tests/test_sig_vectors.sh "$scheme_name" "$file" "$build_dir"
Expand All @@ -29,7 +29,7 @@ elif [ "$1" = "ML-DSA-65-ipd" ]; then

elif [ "$1" = "ML-DSA-87-ipd" ]; then

file=tests/PQC\ Intermediate\ Values/ML-DSA-87.txt
file=tests/PQC_Intermediate_Values/ML-DSA-87.txt
scheme_name=ML-DSA-87-ipd

sh tests/test_sig_vectors.sh "$scheme_name" "$file" "$build_dir"
Expand All @@ -39,7 +39,7 @@ elif [ "$1" = "ML-DSA-87-ipd" ]; then

elif [ "$1" = "ML-KEM-512-ipd" ]; then

file=tests/PQC\ Intermediate\ Values/ML-KEM-512.txt
file=tests/PQC_Intermediate_Values/ML-KEM-512.txt
scheme_name=ML-KEM-512-ipd

sh tests/test_kem_vectors.sh "$scheme_name" "$file" "$build_dir"
Expand All @@ -49,7 +49,7 @@ elif [ "$1" = "ML-KEM-512-ipd" ]; then

elif [ "$1" = "ML-KEM-768-ipd" ]; then

file=tests/PQC\ Intermediate\ Values/ML-KEM-768.txt
file=tests/PQC_Intermediate_Values/ML-KEM-768.txt
scheme_name=ML-KEM-768-ipd

sh tests/test_kem_vectors.sh "$scheme_name" "$file" "$build_dir"
Expand All @@ -59,7 +59,7 @@ elif [ "$1" = "ML-KEM-768-ipd" ]; then

elif [ "$1" = "ML-KEM-1024-ipd" ]; then

file=tests/PQC\ Intermediate\ Values/ML-KEM-1024.txt
file=tests/PQC_Intermediate_Values/ML-KEM-1024.txt
scheme_name=ML-KEM-1024-ipd

sh tests/test_kem_vectors.sh "$scheme_name" "$file" "$build_dir"
Expand Down

0 comments on commit b45a0e6

Please sign in to comment.