From 2e6c195b4306cbaa7506bfd6c19c9e650c730d1f Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 24 Apr 2018 15:26:53 -0700 Subject: [PATCH] GCC-ARM IDE improvements: * Added documentation for `ECC_USER_CURVES`. * Added option for RSA PSS padding support. --- IDE/GCC-ARM/Header/user_settings.h | 8 ++++++++ IDE/GCC-ARM/README.md | 1 + 2 files changed, 9 insertions(+) diff --git a/IDE/GCC-ARM/Header/user_settings.h b/IDE/GCC-ARM/Header/user_settings.h index a074193ec..2b367ad2a 100644 --- a/IDE/GCC-ARM/Header/user_settings.h +++ b/IDE/GCC-ARM/Header/user_settings.h @@ -87,6 +87,11 @@ extern "C" { #undef WC_NO_HARDEN #define WC_NO_HARDEN #endif + + /* RSA PSS Support */ + #if 0 + #define WC_RSA_PSS + #endif #else #define NO_RSA #endif @@ -378,6 +383,9 @@ extern unsigned int custom_rand_generate(void); #undef NO_CRYPT_BENCHMARK //#define NO_CRYPT_BENCHMARK +#undef WOLFCRYPT_ONLY +//#define WOLFCRYPT_ONLY + /* In-lining of misc.c functions */ /* If defined, must include wolfcrypt/src/misc.c in build */ /* Slower, but about 1k smaller */ diff --git a/IDE/GCC-ARM/README.md b/IDE/GCC-ARM/README.md index f865bf99b..ae75e1780 100644 --- a/IDE/GCC-ARM/README.md +++ b/IDE/GCC-ARM/README.md @@ -64,3 +64,4 @@ AES GCM: `GCM_SMALL`, `GCM_WORD32` or `GCM_TABLE`: Tunes performance and flash/m * `USE_SLOW_SHA512`: Over twice as small, but 50% slower * `USE_CERT_BUFFERS_1024` or `USE_CERT_BUFFERS_2048`: Size of RSA certs / keys to test with. * `BENCH_EMBEDDED`: Define this if using the wolfCrypt test/benchmark and using a low memory target. +* `ECC_USER_CURVES`: Allows user to defines curve sizes to enable. Default is 256-bit on. To enable others use `HAVE_ECC192`, `HAVE_ECC224`, etc....