mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-04 00:02:01 -04:00
* Ensure aliases are activated with cmake * Updates alg_support fragments: ensure that dependencies (aliases and platform-specific code) are activated after applying filter_algs * Adds bike_l5 to NIST_R4 algorithms * add CI test for aliases * remove ml_kem ipds from STD filter_algs * decouple name and alias * fixing vector tests
73 lines
1.6 KiB
Bash
Executable File
73 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
if [[ -z "${OQS_BUILD_DIR}" ]]; then
|
|
build_dir=build
|
|
else
|
|
build_dir="${OQS_BUILD_DIR}"
|
|
fi
|
|
|
|
if [[ "$1" = "ML-DSA-44-ipd" || "$1" = "ML-DSA-44" ]]; then
|
|
|
|
file=tests/PQC_Intermediate_Values/ML-DSA-44.txt
|
|
scheme_name=$1
|
|
|
|
sh tests/test_sig_vectors.sh "$scheme_name" "$file" "$build_dir"
|
|
if [ $? != 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
elif [[ "$1" = "ML-DSA-65-ipd" || "$1" = "ML-DSA-65" ]]; then
|
|
|
|
file=tests/PQC_Intermediate_Values/ML-DSA-65.txt
|
|
scheme_name=$1
|
|
|
|
sh tests/test_sig_vectors.sh "$scheme_name" "$file" "$build_dir"
|
|
if [ $? != 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
elif [[ "$1" = "ML-DSA-87-ipd" || "$1" = "ML-DSA-87" ]]; then
|
|
|
|
file=tests/PQC_Intermediate_Values/ML-DSA-87.txt
|
|
scheme_name=$1
|
|
|
|
sh tests/test_sig_vectors.sh "$scheme_name" "$file" "$build_dir"
|
|
if [ $? != 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
elif [[ "$1" = "ML-KEM-512-ipd" || "$1" = "ML-KEM-512" ]]; then
|
|
|
|
file=tests/PQC_Intermediate_Values/ML-KEM-512.txt
|
|
scheme_name=$1
|
|
|
|
sh tests/test_kem_vectors.sh "$scheme_name" "$file" "$build_dir"
|
|
if [ $? != 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
elif [[ "$1" = "ML-KEM-768-ipd" || "$1" = "ML-KEM-768" ]]; then
|
|
|
|
file=tests/PQC_Intermediate_Values/ML-KEM-768.txt
|
|
scheme_name=$1
|
|
|
|
sh tests/test_kem_vectors.sh "$scheme_name" "$file" "$build_dir"
|
|
if [ $? != 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
elif [[ "$1" = "ML-KEM-1024-ipd" || "$1" = "ML-KEM-1024" ]]; then
|
|
|
|
file=tests/PQC_Intermediate_Values/ML-KEM-1024.txt
|
|
scheme_name=$1
|
|
|
|
sh tests/test_kem_vectors.sh "$scheme_name" "$file" "$build_dir"
|
|
if [ $? != 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
else
|
|
echo "$1 not supported"
|
|
fi
|