Skip to content

Commit fa4cdad

Browse files
author
night1rider
committed
Updates to user settings and readme
1 parent c5c0de1 commit fa4cdad

File tree

2 files changed

+16
-23
lines changed

2 files changed

+16
-23
lines changed

dm-wolftpm-wolfssl-tls-with-zephyr/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,11 @@ By default the project is set up to use a DHCP Server, this section will show ho
298298
299299
5. Set the `STATIC_IPV4_NETMASK` macro to your needs. Generally `255.255.255.0` for most use cases.
300300
301-
6. Rebuild the project and flash the device.
301+
6. Set the `NO_INTERNET` macro to `0` to enable NTP and DNS resolution. This will setup the device to use the NTP server `pool.ntp.org` and DNS server `8.8.8.8` to get the current date and time.
302+
303+
7. Set the `NO_INTERNET` macro to `1` to disable NTP and DNS resolution. This will setup the device to use the date and time manually set in the `set_time_manually` function. Time is set to 1st January 2025 12:00:00 by default.
304+
305+
8. Rebuild the project and flash the device.
302306
303307
## 6. FAQs<a name="step7"></a>
304308
1. **Q: Why is my SD card not recognized?**

dm-wolftpm-wolfssl-tls-with-zephyr/src/user_settings.h

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,21 @@ extern "C" {
149149
/* ECC */
150150
#if 1
151151
#define HAVE_ECC
152-
//#define ECC_USER_CURVES /* Enable only ECC curves specific */
152+
#define ECC_USER_CURVES /* Enable only ECC curves specific */
153153
#undef NO_ECC256 /* Enable SECP256R1 only (on by default) */
154154
#define ECC_TIMING_RESISTANT /* Enable Timing Resistance */
155155

156156
//#define ECC_SHAMIR /* Optional ECC calculation speed improvement if not using SP implementation */
157-
#define WOLFSSL_CUSTOM_CURVES /* enable other curves (not just prime) */
157+
//#define WOLFSSL_CUSTOM_CURVES /* enable other curves (not just prime) */
158158
//#define HAVE_ECC_SECPR2
159159
//#define HAVE_ECC_SECPR3
160160
//#define HAVE_ECC_BRAINPOOL
161161
//#define HAVE_ECC_KOBLITZ
162162
//#define HAVE_ECC_CDH /* Co-factor */
163-
#define HAVE_COMP_KEY /* Compressed key support */
163+
//#define HAVE_COMP_KEY /* Compressed key support */
164164
//#define FP_ECC /* Fixed point caching - speed repeated operations against same key */
165-
#define HAVE_ECC_ENCRYPT
166-
#define WOLFCRYPT_HAVE_ECCSI
165+
//#define HAVE_ECC_ENCRYPT
166+
//#define WOLFCRYPT_HAVE_ECCSI
167167
#define WOLFSSL_ECDSA_DETERMINISTIC_K_VARIANT
168168
#endif
169169

@@ -257,7 +257,7 @@ extern "C" {
257257
/* AES-GCM */
258258
#if 1
259259
#define HAVE_AESGCM
260-
#define GCM_SMALL /* GCM Method: GCM_TABLE_4BIT, GCM_SMALL, GCM_WORD32 or GCM_TABLE */
260+
#define GCM_TABLE_4BIT /* GCM Method: GCM_TABLE_4BIT, GCM_SMALL, GCM_WORD32 or GCM_TABLE */
261261
//#define WOLFSSL_AESGCM_STREAM
262262
#endif
263263
//#define HAVE_AES_DECRYPT
@@ -366,18 +366,7 @@ extern "C" {
366366
//#define WOLFSSL_SP_NO_MALLOC /* disable heap in wolf/SP math */
367367
//#define SP_DIV_WORD_USE_DIV /* no div64 */
368368

369-
#define WOLFSSL_SP_ARM_CORTEX_M_ASM
370-
371-
#if 1
372-
#define WOLFSSL_ARMASM
373-
#define WOLFSSL_ARMASM_INLINE
374-
#define WOLFSSL_ARMASM_NO_HW_CRYPTO
375-
#define WOLFSSL_ARMASM_NO_NEON
376-
#define WOLFSSL_ARM_ARCH 7
377-
#define WOLFSSL_ARMASM_THUMB2
378-
#endif
379-
380-
#if 0
369+
#if 1
381370
/* optional speedup with inline assembly */
382371
#define WOLFSSL_SP_ARM_CORTEX_M_ASM /* Cortex-M3+ */
383372
//#define WOLFSSL_SP_ARM_THUMB_ASM /* Cortex-M0+ thumb */
@@ -400,7 +389,9 @@ extern "C" {
400389
#define WOLFSSL_ARMASM_NO_NEON
401390

402391
/* Default is ARMv8 */
403-
392+
#if 0
393+
#define WOLFSSL_ARMASM_THUMB2
394+
#endif
404395
#if 0 /* ARMv7 */
405396
#define WOLFSSL_ARM_ARCH 7
406397
#define WOLFSSL_ARMASM_NO_HW_CRYPTO /* enable if processor does not support aes/sha instructions */
@@ -425,7 +416,7 @@ extern "C" {
425416
#ifdef CONFIG_WOLFSSL_DEBUG
426417
#define DEBUG_WOLFSSL
427418
#else
428-
#if 1
419+
#if 0
429420
#define NO_ERROR_STRINGS
430421
#endif
431422
#endif
@@ -452,8 +443,6 @@ extern "C" {
452443
#define WOLFTPM_CRYPTOCB
453444
#define WOLF_CRYPTO_CB
454445
#define WC_TEST_NO_CRYPTOCB_SW_TEST
455-
#define WOLFSSL_PUBLIC_MP
456-
457446

458447

459448
#define HAVE_RSA // Enable RSA support

0 commit comments

Comments
 (0)