mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-06-05 21:15:09 +00:00
72f178bdbd
We are moving the command line entry point to the consuming branch. The move will be completed when the consuming branch no longer needs the script to exist in the framework. https://github.com/Mbed-TLS/mbedtls-framework/issues/294 Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
27 lines
848 B
Python
Executable File
27 lines
848 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Generate ML-DSA test cases.
|
|
|
|
This is a transitional script that does not handle different feature sets
|
|
in different states of TF-PSA-Crypto. The live version of this script
|
|
is `scripts/maintainer/generate_mldsa_tests.py` in TF-PSA-Crypto.
|
|
"""
|
|
|
|
import sys
|
|
|
|
import scripts_path # pylint: disable=unused-import
|
|
from mbedtls_framework import test_data_generation
|
|
from mbedtls_maintainer import mldsa_test_generator
|
|
|
|
class MLDSATestGenerator(test_data_generation.TestGenerator):
|
|
"""Generate test cases for ML-DSA."""
|
|
|
|
def __init__(self, settings) -> None:
|
|
self.targets = {
|
|
'test_suite_pqcp_mldsa.dilithium_py': mldsa_test_generator.gen_pqcp_mldsa_all,
|
|
}
|
|
super().__init__(settings)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
test_data_generation.main(sys.argv[1:], __doc__, MLDSATestGenerator)
|