mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-05 17:04:13 +02:00
Get rid of pqm4 in favour our own Kyber/MLDSA implementation
This commit is contained in:
@@ -334,15 +334,6 @@ extern ${variable.value} ${variable.name};
|
||||
#define NO_SESSION_CACHE
|
||||
#endif
|
||||
|
||||
/* Post Quantum
|
||||
* Note: PQM4 is compatible with STM32. The project can be found at:
|
||||
* https://github.com/mupq/pqm4
|
||||
*/
|
||||
#if defined(WOLF_CONF_PQM4) && WOLF_CONF_PQM4 == 1
|
||||
#define HAVE_PQM4
|
||||
#endif
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Crypto */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
@@ -534,6 +525,33 @@ extern ${variable.value} ${variable.name};
|
||||
#define NO_MD5
|
||||
#endif
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Post-Quantum Crypto */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* NOTE: this is after the hashing section to override the potential SHA3 undef
|
||||
* above. */
|
||||
#if defined(WOLF_CONF_KYBER) && WOLF_CONF_KYBER == 1
|
||||
#undef WOLFSSL_EXPERIMENTAL_SETTINGS
|
||||
#define WOLFSSL_EXPERIMENTAL_SETTINGS
|
||||
|
||||
#undef WOLFSSL_HAVE_KYBER
|
||||
#define WOLFSSL_HAVE_KYBER
|
||||
|
||||
#undef WOLFSSL_WC_KYBER
|
||||
#define WOLFSSL_WC_KYBER
|
||||
|
||||
#undef WOLFSSL_NO_SHAKE128
|
||||
#undef WOLFSSL_SHAKE128
|
||||
#define WOLFSSL_SHAKE128
|
||||
|
||||
#undef WOLFSSL_NO_SHAKE256
|
||||
#undef WOLFSSL_SHAKE256
|
||||
#define WOLFSSL_SHAKE256
|
||||
|
||||
#undef WOLFSSL_SHA3
|
||||
#define WOLFSSL_SHA3
|
||||
#endif /* WOLF_CONF_KYBER */
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Crypto Acceleration */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
@@ -1750,7 +1750,7 @@ static int tls13_uart_client(void)
|
||||
|
||||
wolfSSL_SetIOReadCtx(ssl, tbuf);
|
||||
|
||||
#ifdef HAVE_PQC
|
||||
#ifdef WOLFSSL_HAVE_KYBER
|
||||
if (wolfSSL_UseKeyShare(ssl, WOLFSSL_KYBER_LEVEL1) != WOLFSSL_SUCCESS) {
|
||||
printf("wolfSSL_UseKeyShare Error!!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user