Changes to support v5.3.0 cube pack for ST.

This commit is contained in:
David Garske
2022-05-06 15:07:36 -07:00
parent e722c15be8
commit bc877dab2a
3 changed files with 17 additions and 4 deletions

View File

@ -114,6 +114,9 @@ extern ${variable.value} ${variable.name};
#elif defined(STM32F207xx)
#define WOLFSSL_STM32F2
#define HAL_CONSOLE_UART huart3
#elif defined(STM32F217xx)
#define WOLFSSL_STM32F2
#define HAL_CONSOLE_UART huart2
#elif defined(STM32F107xC)
#define WOLFSSL_STM32F1
#define HAL_CONSOLE_UART huart4
@ -150,7 +153,7 @@ extern ${variable.value} ${variable.name};
//#define NO_STM32_RNG
//#undef NO_STM32_HASH
//#undef NO_STM32_CRYPTO
//#define WOLFSSL_GENSEED_FORTEST
//#define WOLFSSL_GENSEED_FORTEST /* if no HW RNG is available use test seed */
//#define STM32_HAL_V2
#endif
@ -264,8 +267,14 @@ extern ${variable.value} ${variable.name};
#if defined(WOLF_CONF_BASE64_ENCODE) && WOLF_CONF_BASE64_ENCODE == 1
#define WOLFSSL_BASE64_ENCODE
#endif
#if defined(WOLF_CONF_OPENSSL_EXTRA) && WOLF_CONF_OPENSSL_EXTRA == 1
#if defined(WOLF_CONF_OPENSSL_EXTRA) && WOLF_CONF_OPENSSL_EXTRA >= 1
#define OPENSSL_EXTRA
#if !defined(INT_MAX)
#include <limits.h>
#endif
#endif
#if defined(WOLF_CONF_OPENSSL_EXTRA) && WOLF_CONF_OPENSSL_EXTRA >= 2
#define OPENSSL_ALL
#endif
/* TLS Session Cache */

View File

@ -680,6 +680,7 @@ static const bench_alg bench_other_opt[] = {
#endif /* !WOLFSSL_BENCHMARK_ALL && !NO_MAIN_DRIVER */
#if defined(HAVE_PQC)
/* The post-quantum-specific mapping of command line option to bit values and
* OQS name. */
typedef struct bench_pq_alg {
@ -758,6 +759,7 @@ static const bench_pq_alg bench_pq_asym_opt[] = {
#endif
{ NULL, 0, NULL }
};
#endif
#ifdef HAVE_WNR
const char* wnrConfigFile = "wnr-example.conf";
@ -7747,6 +7749,7 @@ int main(int argc, char** argv)
optMatched = 1;
}
}
#if defined(HAVE_PQC)
/* Known asymmetric post-quantum algorithms */
for (i=0; !optMatched && bench_pq_asym_opt[i].str != NULL; i++) {
if (string_matches(argv[1], bench_pq_asym_opt[i].str)) {
@ -7755,6 +7758,7 @@ int main(int argc, char** argv)
optMatched = 1;
}
}
#endif
/* Other known cryptographic algorithms */
for (i=0; !optMatched && bench_other_opt[i].str != NULL; i++) {
if (string_matches(argv[1], bench_other_opt[i].str)) {

View File

@ -215,8 +215,8 @@
#endif
#endif
#ifndef CHAR_BIT
/* Needed for DTLS without big math */
#if !defined(CHAR_BIT) || (defined(OPENSSL_EXTRA) && !defined(INT_MAX))
/* Needed for DTLS without big math and INT_MAX */
#include <limits.h>
#endif