mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-04 00:02:01 -04:00
* Add ML-KEM * Add ACVP vectors for ML-KEM * Removes ML-KEM-ipd --------- Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
43 lines
900 B
Bash
Executable File
43 lines
900 B
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
|
|
|
|
else
|
|
echo "$1 not supported"
|
|
fi
|