mirror of https://github.com/wolfSSL/wolfssl.git
Add dtls 1.3 PQC suites tests
parent
1a3f3aa5f0
commit
8bc79a0b43
|
@ -29,7 +29,9 @@ EXTRA_DIST += tests/unit.h \
|
|||
tests/test-tls13-pq.conf \
|
||||
tests/test-tls13-pq-2.conf \
|
||||
tests/test-dtls13-pq.conf \
|
||||
tests/test-dtls13-pq-frag.conf \
|
||||
tests/test-dtls13-pq-2.conf \
|
||||
tests/test-dtls13-pq-2-frag.conf \
|
||||
tests/test-psk.conf \
|
||||
tests/test-psk-no-id.conf \
|
||||
tests/test-psk-no-id-sha2.conf \
|
||||
|
|
|
@ -966,10 +966,10 @@ int SuiteTest(int argc, char** argv)
|
|||
args.return_code = EXIT_FAILURE;
|
||||
goto exit;
|
||||
}
|
||||
#ifdef HAVE_LIBOQS
|
||||
/* add DTLSv13 pq tests */
|
||||
XSTRLCPY(argv0[1], "tests/test-dtls13-pq-2.conf", sizeof(argv0[1]));
|
||||
printf("starting DTLSv13 post-quantum groups tests\n");
|
||||
#ifdef WOLFSSL_DTLS_CH_FRAG
|
||||
/* add DTLSv13 pq frag tests */
|
||||
XSTRLCPY(argv0[1], "tests/test-dtls13-pq-frag.conf", sizeof(argv0[1]));
|
||||
printf("starting DTLSv13 post-quantum groups tests with fragmentation\n");
|
||||
test_harness(&args);
|
||||
if (args.return_code != 0) {
|
||||
printf("error from script %d\n", args.return_code);
|
||||
|
@ -977,6 +977,28 @@ int SuiteTest(int argc, char** argv)
|
|||
goto exit;
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_LIBOQS
|
||||
/* add DTLSv13 pq 2 tests */
|
||||
XSTRLCPY(argv0[1], "tests/test-dtls13-pq-2.conf", sizeof(argv0[1]));
|
||||
printf("starting DTLSv13 post-quantum 2 groups tests\n");
|
||||
test_harness(&args);
|
||||
if (args.return_code != 0) {
|
||||
printf("error from script %d\n", args.return_code);
|
||||
args.return_code = EXIT_FAILURE;
|
||||
goto exit;
|
||||
}
|
||||
#ifdef WOLFSSL_DTLS_CH_FRAG
|
||||
/* add DTLSv13 pq 2 frag tests */
|
||||
XSTRLCPY(argv0[1], "tests/test-dtls13-pq-2-frag.conf", sizeof(argv0[1]));
|
||||
printf("starting DTLSv13 post-quantum 2 groups tests with fragmentation\n");
|
||||
test_harness(&args);
|
||||
if (args.return_code != 0) {
|
||||
printf("error from script %d\n", args.return_code);
|
||||
args.return_code = EXIT_FAILURE;
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#if defined(WC_RSA_PSS) && (!defined(HAVE_FIPS) || \
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
# server DTLSv1.3 with post-quantum group
|
||||
-u
|
||||
-v 4
|
||||
-l TLS13-AES256-GCM-SHA384
|
||||
--pqc P384_KYBER_LEVEL3
|
||||
|
||||
# client DTLSv1.3 with post-quantum group
|
||||
-u
|
||||
-v 4
|
||||
-l TLS13-AES256-GCM-SHA384
|
||||
--pqc P384_KYBER_LEVEL3
|
||||
|
||||
# server DTLSv1.3 with post-quantum group
|
||||
-u
|
||||
-v 4
|
||||
-l TLS13-AES256-GCM-SHA384
|
||||
--pqc P521_KYBER_LEVEL5
|
||||
|
||||
# client DTLSv1.3 with post-quantum group
|
||||
-u
|
||||
-v 4
|
||||
-l TLS13-AES256-GCM-SHA384
|
||||
--pqc P521_KYBER_LEVEL5
|
|
@ -0,0 +1,24 @@
|
|||
# server DTLSv1.3 with post-quantum group
|
||||
-u
|
||||
-v 4
|
||||
-l TLS13-AES256-GCM-SHA384
|
||||
--pqc KYBER_LEVEL3
|
||||
|
||||
# client DTLSv1.3 with post-quantum group
|
||||
-u
|
||||
-v 4
|
||||
-l TLS13-AES256-GCM-SHA384
|
||||
--pqc KYBER_LEVEL3
|
||||
|
||||
# server DTLSv1.3 with post-quantum group
|
||||
-u
|
||||
-v 4
|
||||
-l TLS13-AES256-GCM-SHA384
|
||||
--pqc KYBER_LEVEL5
|
||||
|
||||
# client DTLSv1.3 with post-quantum group
|
||||
-u
|
||||
-v 4
|
||||
-l TLS13-AES256-GCM-SHA384
|
||||
--pqc KYBER_LEVEL5
|
||||
|
Loading…
Reference in New Issue