Skip to content

Commit cd2713a

Browse files
committed
Default WOLFSSL_MAX_SIGALGO to 128
1 parent a3f5260 commit cd2713a

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
@@ -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

0 commit comments

Comments
 (0)