mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-30 14:22:13 +01:00
Kyber: fix TLS usage
Allow only select parameter sets to be compiled in. Fixed unit.test to recognize when level is supported.
This commit is contained in:
@@ -13141,7 +13141,7 @@ static int TLSX_PopulateSupportedGroups(WOLFSSL* ssl, TLSX** extensions)
|
||||
ret = TLSX_UseSupportedCurve(extensions, WOLFSSL_P384_KYBER_LEVEL3,
|
||||
ssl->heap);
|
||||
#endif
|
||||
#ifdef WOLFSSL_KYBER768
|
||||
#ifdef WOLFSSL_KYBER1024
|
||||
if (ret == WOLFSSL_SUCCESS)
|
||||
ret = TLSX_UseSupportedCurve(extensions, WOLFSSL_KYBER_LEVEL5,
|
||||
ssl->heap);
|
||||
|
||||
Reference in New Issue
Block a user