mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-03-24 12:07:17 +01:00
Kyber/ML-KEM: make both available
Make Kyber and ML-KEM individually available as well as at the same time. Modified TLS layer to support both Kyber and ML-KEM. Added new identifiers in TLS layer for ML-KEM.
This commit is contained in:
@@ -1751,6 +1751,11 @@ static int tls13_uart_client(void)
|
||||
wolfSSL_SetIOReadCtx(ssl, tbuf);
|
||||
|
||||
#ifdef WOLFSSL_HAVE_KYBER
|
||||
#ifndef WOLFSSL_NO_ML_KEM
|
||||
if (wolfSSL_UseKeyShare(ssl, WOLFSSL_ML_KEM_512) != WOLFSSL_SUCCESS) {
|
||||
printf("wolfSSL_UseKeyShare Error!!");
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_UseKeyShare(ssl, WOLFSSL_KYBER_LEVEL1) != WOLFSSL_SUCCESS) {
|
||||
printf("wolfSSL_UseKeyShare Error!!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user