From 0cda12d44650cdc5992fbd8d58aff4cfb004c037 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Thu, 2 Jun 2022 16:52:35 -0400 Subject: [PATCH] For inter-op with OQS's OpenSSL fork, support longer sigalg list. --- wolfssl/internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wolfssl/internal.h b/wolfssl/internal.h index ffd99d49e..a2a45b2e8 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -1510,8 +1510,15 @@ enum Misc { /* number of items in the signature algo list */ #ifndef WOLFSSL_MAX_SIGALGO +#ifdef HAVE_PQC + /* If we are building with post-quantum algorithms, we likely want to + * inter-op with OQS's OpenSSL and they send a lot more sigalgs. + */ + #define WOLFSSL_MAX_SIGALGO 128 +#else #define WOLFSSL_MAX_SIGALGO 38 #endif +#endif /* set minimum ECC key size allowed */