From 07e0daf3a0dc16d2aff09a8aa1814616e7f1dcf3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 7 Aug 2024 10:51:53 +0100 Subject: [PATCH] [CritFix] The max size for signing key is actually 65 bytes for p256 --- src/libcryptobox/cryptobox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h index 234da2054..2f68c0ed4 100644 --- a/src/libcryptobox/cryptobox.h +++ b/src/libcryptobox/cryptobox.h @@ -50,7 +50,7 @@ struct rspamd_cryptobox_segment { #define rspamd_cryptobox_HASHKEYBYTES 64 #define rspamd_cryptobox_HASHSTATEBYTES sizeof(crypto_generichash_blake2b_state) + 64 #define rspamd_cryptobox_MAX_SIGSKBYTES 64 -#define rspamd_cryptobox_MAX_SIGPKBYTES 32 +#define rspamd_cryptobox_MAX_SIGPKBYTES 65 #define rspamd_cryptobox_MAX_SIGBYTES 72 #define CPUID_AVX2 0x1 -- 2.39.5