From a0f6b779a5ebf91432383a2aa6b4845666e05854 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Thu, 19 Jun 2025 17:58:49 -0400 Subject: [PATCH] -----BEGIN SPHINCS_SMALL_LEVEL1 PRIVATE KEY----- is the longest one at length 48 --- wolfssl/wolfcrypt/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 73ce5b4bf..4ee796b42 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -2050,7 +2050,7 @@ enum Max_ASN { /* Maximum DER digest ASN header size */ /* Max X509 header length indicates the * max length + 2 ('\n', '\0') */ - MAX_X509_HEADER_SZ = (41 + 2), /* Maximum PEM Header/Footer Size */ + MAX_X509_HEADER_SZ = (48 + 2), /* Maximum PEM Header/Footer Size */ #if defined(HAVE_FALCON) || defined(HAVE_DILITHIUM) MAX_PUBLIC_KEY_SZ = MAX_PQC_PUBLIC_KEY_SZ + MAX_ALGO_SZ + MAX_SEQ_SZ * 2, #else