File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,16 +88,22 @@ extern "C" {
8888#define WC_RSA_BLINDING
8989
9090/* Asymmetric */
91- #if 1 /* RSA */
91+ #if 1 /* RSA - PKCS1v1.5 */
9292 #undef NO_RSA
93+ #define WC_NO_RSA_OAEP /* SSH does not use OAEP */
94+
9395 #ifdef USE_LOW_RESOURCE
94- #define RSA_LOW_MEM
96+ /* currently CalcRsaInverses uses RsaKey members so cannot enable */
97+ /* #define RSA_LOW_MEM */
9598 #endif
9699#else
97100 #define NO_RSA
98101#endif
99102
100103#if 1 /* DH */
104+ /* RFC 4253 requires "DH w/SHA-1"
105+ * RFC 9142 requires "diffie-hellman-group14-sha256"
106+ */
101107 #undef NO_DH
102108 #ifndef WOLFCRYPT_ONLY
103109 #define HAVE_DH_DEFAULT_PARAMS
@@ -128,12 +134,14 @@ extern "C" {
128134 #define WOLFSSL_AES_SMALL_TABLES
129135#endif
130136
131- /* Hashing SHA2-256/384/512 */
137+ /* Hashing SHA-1/SHA2-256 */
138+ #undef NO_SHA
132139#undef NO_SHA256
133140#ifdef USE_LOW_RESOURCE
141+ #define USE_SLOW_SHA
134142 #define USE_SLOW_SHA256
135143#endif
136- #if 1
144+ #if 0
137145 #define WOLFSSL_SHA384
138146 #define WOLFSSL_SHA512
139147 #ifdef USE_LOW_RESOURCE
@@ -181,7 +189,6 @@ extern "C" {
181189#endif
182190
183191/* Disable Algorithms */
184- #define NO_SHA
185192#define NO_DSA
186193#define NO_DES3
187194#define NO_MD4
You can’t perform that action at this time.
0 commit comments