Test mbedtls in kitchen sink

This commit is contained in:
Peter Harper 2025-04-09 17:00:25 +01:00
parent 9c265bc149
commit b6bb87bd7e
3 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,6 @@
#include "pico.h"
#include "pico/rand.h"
#include "mbedtls/sha256.h"
#include "common.h"
/* Function to feed mbedtls entropy. */
int mbedtls_hardware_poll(void *data __unused, unsigned char *output, size_t len, size_t *olen) {

View File

@ -11,4 +11,10 @@
#define LWIP_DNS 1
#define LWIP_SOCKET 0
#define LWIP_NETCONN 0
#endif
// For testing mbedtls
#define LWIP_ALTCP 1
#define LWIP_ALTCP_TLS 1
#define LWIP_ALTCP_TLS_MBEDTLS 1
#endif

View File

@ -61,3 +61,4 @@
#define MBEDTLS_ECDSA_C
#define MBEDTLS_ASN1_WRITE_C
#define MBEDTLS_PLATFORM_MS_TIME_ALT