Kyber: Add option to build Kyber API

wolfSSL Kyber implementation not included.
Added tests and benchmarking.
This commit is contained in:
Sean Parkinson
2022-09-08 11:23:30 +10:00
committed by Anthony Hu
parent 38418b31f1
commit 8c1e2c52e7
20 changed files with 5307 additions and 267 deletions

View File

@@ -50380,7 +50380,11 @@ static int test_tls13_apis(void)
#if defined(HAVE_ECC) && defined(HAVE_SUPPORTED_CURVES)
int groups[2] = { WOLFSSL_ECC_SECP256R1,
#ifdef HAVE_PQC
#ifndef WOLFSSL_WC_KYBER
WOLFSSL_SABER_LEVEL3
#else
WOLFSSL_KYBER_LEVEL1
#endif
#else
WOLFSSL_ECC_SECP256R1
#endif
@@ -50402,7 +50406,11 @@ static int test_tls13_apis(void)
#if (!defined(NO_ECC256) || defined(HAVE_ALL_CURVES)) && ECC_MIN_KEY_SZ <= 256
"P-256"
#ifdef HAVE_PQC
#ifndef WOLFSSL_WC_KYBER
":P256_SABER_LEVEL1"
#else
":P256_KYBER_LEVEL1"
#endif
#endif
#endif
#ifdef HAVE_PQC