diff --git a/oqs-template/oqs_test/tests/test_openssl.py/sig_algs_master.fragment b/oqs-template/oqs_test/tests/test_openssl.py/sig_algs_master.fragment index a51f8ebfad849..2541638a6ad53 100644 --- a/oqs-template/oqs_test/tests/test_openssl.py/sig_algs_master.fragment +++ b/oqs-template/oqs_test/tests/test_openssl.py/sig_algs_master.fragment @@ -6,7 +6,7 @@ {% for sig in config['sigs'] -%} {%- for variant in sig['variants'] -%} {%- for classical_alg in variant['mix_with'] -%} - '{{ classical_alg['name'] }}-{{ variant['name'] }}', + '{{ classical_alg['name'] }}_{{ variant['name'] }}', {%- endfor -%} {%- endfor %} {%- endfor %} diff --git a/oqs_test/tests/test_openssl.py b/oqs_test/tests/test_openssl.py index c6a9292288c17..e21f30c45ae81 100644 --- a/oqs_test/tests/test_openssl.py +++ b/oqs_test/tests/test_openssl.py @@ -14,13 +14,13 @@ ##### OQS_TEMPLATE_FRAGMENT_KEX_ALGS_MASTER_END ] sig_algs_master_111 = [ - 'rsa', + 'rsa:3072', 'ecdsa', ##### OQS_TEMPLATE_FRAGMENT_SIG_ALGS_MASTER_START # post-quantum signatures 'oqsdefault','dilithium2','dilithium3','dilithium4','picnicl1fs','qteslapi','qteslapiii', # post-quantum + classical signatures - 'p256-oqsdefault','rsa3072-oqsdefault','p256-dilithium2','rsa3072-dilithium2','p384-dilithium4','p256-picnicl1fs','rsa3072-picnicl1fs','p256-qteslapi','rsa3072-qteslapi','p384-qteslapiii', + 'p256_oqsdefault','rsa3072_oqsdefault','p256_dilithium2','rsa3072_dilithium2','p384_dilithium4','p256_picnicl1fs','rsa3072_picnicl1fs','p256_qteslapi','rsa3072_qteslapi','p384_qteslapiii', ##### OQS_TEMPLATE_FRAGMENT_SIG_ALGS_MASTER_END ] @@ -72,12 +72,10 @@ def gen_keys(sig_alg): ) else: # generate CA key and cert - if sig_alg == 'rsa': sig_alg_sized = "rsa:3072" - else: sig_alg_sized = "rsa" helpers.run_subprocess( [ 'apps/openssl', 'req', '-x509', '-new', - '-newkey', sig_alg_sized, + '-newkey', sig_alg, '-keyout', '{}_CA.key'.format(sig_alg), '-out', '{}_CA.crt'.format(sig_alg), '-nodes', @@ -91,7 +89,7 @@ def gen_keys(sig_alg): helpers.run_subprocess( [ 'apps/openssl', 'req', '-new', - '-newkey', sig_alg_sized, + '-newkey', sig_alg, '-keyout', '{}_srv.key'.format(sig_alg), '-out', '{}_srv.csr'.format(sig_alg), '-nodes',