Skip to content

Commit 2710d50

Browse files
committed
Default WOLFSSL_MAX_SIGALGO to 128
1 parent 887f242 commit 2710d50

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

wolfssl/internal.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)