File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1894,13 +1894,15 @@ WOLFSSL_LOCAL int NamedGroupIsPqcHybrid(int group);
18941894
18951895/* number of items in the signature algo list */
18961896#ifndef WOLFSSL_MAX_SIGALGO
1897- #if defined(HAVE_FALCON ) || defined(HAVE_DILITHIUM )
1898- /* If we are building with post-quantum algorithms, we likely want to
1899- * inter-op with OQS's OpenSSL and they send a lot more sigalgs.
1897+ #if (defined(WOLFSSL_LEANPSK ) || defined(WOLFSSL_LEANTLS )) && \
1898+ !defined(HAVE_FALCON ) && !defined(HAVE_DILITHIUM )
1899+ /* Lean builds keep the list small to minimize the memory footprint, unless
1900+ * they are post-quantum builds: those want to inter-op with OQS's OpenSSL
1901+ * that sends a lot more sigalgs, so they fall through to the larger default.
19001902 */
1901- #define WOLFSSL_MAX_SIGALGO 128
1902- #else
19031903 #define WOLFSSL_MAX_SIGALGO 44
1904+ #else
1905+ #define WOLFSSL_MAX_SIGALGO 128
19041906#endif
19051907#endif
19061908
You can’t perform that action at this time.
0 commit comments