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