Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IDE/AURIX/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ extern unsigned int my_rng_seed_gen(void);

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/CRYPTOCELL/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/ECLIPSE/DEOS/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ You can get the current time from https://www.unixtimestamp.com/ */
#if 1
#define HAVE_CURVE25519
#define HAVE_ED25519
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif

#undef NO_SHA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ void app_main(void)
ESP_LOGI(TAG, "Missing CURVE25519_SMALL");
#endif

#if defined(CURVED25519_SMALL)
ESP_LOGI(TAG, "Found CURVED25519_SMALL");
#if defined(CURVE25519_SMALL)
ESP_LOGI(TAG, "Found CURVE25519_SMALL");
#else
ESP_LOGI(TAG, "Missing CURVED25519_SMALL");
ESP_LOGI(TAG, "Missing CURVE25519_SMALL");
#endif

#if defined(HAVE_ED25519)
Expand Down
2 changes: 1 addition & 1 deletion IDE/GCC-ARM/Header/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/GCC-ARM/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ These settings are located in `Header/user_settings.h`.
* `ECC_SHAMIR`: Doubles heap usage, but slightly faster
* `RSA_LOW_MEM`: Half as much memory but twice as slow. Uses Non-CRT method for private key.
* AES GCM: `GCM_SMALL`, `GCM_WORD32` or `GCM_TABLE`: Tunes performance and flash/memory usage.
* `CURVED25519_SMALL`: Enables small versions of Ed/Curve (FE/GE math).
* `CURVE25519_SMALL`: Enables small versions of Ed/Curve (FE/GE math).
* `USE_SLOW_SHA`: Enables smaller/slower version of SHA.
* `USE_SLOW_SHA256`: About 2k smaller and about 25% slower
* `USE_SLOW_SHA512`: Over twice as small, but 50% slower
Expand Down
2 changes: 1 addition & 1 deletion IDE/INTIME-RTOS/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 0
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/LPCXPRESSO/lib_wolfssl/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define ALT_ECC_SIZE
#define USE_FAST_MATH
#define SMALL_SESSION_CACHE
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#define RSA_LOW_MEM
#define GCM_SMALL
#define ECC_SHAMIR
Expand Down
4 changes: 2 additions & 2 deletions IDE/MDK5-ARM/Conf/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@
#define MDK_CONF_CURVE25519 1
#if MDK_CONF_CURVE25519 == 1
#define HAVE_CURVE25519
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
// </e>
// <e>CURVE25519 SMALL
#define MDK_CONF_CURVE25519_SMALL 0
#if MDK_CONF_CURVE25519_SMALL == 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
// </e>
// <e>ED25519
Expand Down
2 changes: 1 addition & 1 deletion IDE/MPLABX16/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 0
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/NETOS/user_settings.h-cert3389
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/RISCV/SIFIVE-HIFIVE1/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ extern "C" {
/* Optionally use small math (less flash usage, but much slower) */
#if 1
/* Curve and Ed 25519 small */
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/ROWLEY-CROSSWORKS-ARM/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 0
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/STARCORE/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/STM32Cube/STM32_Benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ Benchmark Test: Return code 0
#define WOLFSSL_SP_SMALL
#define WOLFSSL_NO_ASM
#define WOLFSSL_SP_NO_MALLOC
#define CURVED25519_SMALL
#define CURVE25519_SMALL
```

```
Expand Down
2 changes: 1 addition & 1 deletion IDE/STM32Cube/default_conf.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ extern ${variable.value} ${variable.name};
#define HAVE_ED25519

/* Optionally use small math (less flash usage, but much slower) */
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif


Expand Down
2 changes: 1 addition & 1 deletion IDE/SimplicityStudio/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/VisualDSP/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/WICED-STUDIO/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/WINCE/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ C149F3285397DFBD0C6720E14818475C3A50B10880EF9619463173A6D5ED15E7

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/XCODE-FIPSv2/macOS-C++/Intel/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/XCODE-FIPSv2/macOS-C++/M1/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/XCODE-FIPSv2/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/XCODE-FIPSv5/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 1
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/XCODE-FIPSv6/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 0
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion examples/configs/user_settings_stm32.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ extern "C" {
#define HAVE_ED25519

/* Optionally use small math (less flash usage, but much slower) */
//#define CURVED25519_SMALL
//#define CURVE25519_SMALL
#endif

/* ------------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion examples/configs/user_settings_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ extern "C" {

/* Optionally use small math (less flash, slower) */
#if 1 /* Small Curve25519 */
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion mcapi/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 0
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion mplabx/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ extern "C" {

/* Optionally use small math (less flash usage, but much slower) */
#if 0
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion wolfssl/wolfcrypt/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -4059,7 +4059,7 @@ extern void uITRON4_free(void *p) ;
#endif

/* both CURVE and ED small math should be enabled */
#ifdef CURVED25519_SMALL
#ifdef CURVE25519_SMALL
#define CURVE25519_SMALL
#define ED25519_SMALL
#endif
Expand Down
2 changes: 1 addition & 1 deletion wrapper/Ada/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ extern "C" {
#define HAVE_CURVE25519
#define HAVE_ED25519
#define WOLFSSL_ED25519_STREAMING_VERIFY
#define CURVED25519_SMALL
#define CURVE25519_SMALL
#define HAVE_ED448
#define WOLFSSL_ED448_STREAMING_VERIFY
#define HAVE_CURVE448
Expand Down
2 changes: 1 addition & 1 deletion zephyr/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ extern "C" {
#define HAVE_ED25519 /* ED25519 Requires SHA512 */

/* Optionally use small math (less flash usage, but much slower) */
//#define CURVED25519_SMALL
//#define CURVE25519_SMALL
#endif

/* SHA-1 */
Expand Down
Loading