From: Vsevolod Stakhov Date: Wed, 7 Aug 2024 09:51:53 +0000 (+0100) Subject: [CritFix] The max size for signing key is actually 65 bytes for p256 X-Git-Tag: 3.10.0~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=07e0daf3a0dc16d2aff09a8aa1814616e7f1dcf3;p=rspamd.git [CritFix] The max size for signing key is actually 65 bytes for p256 --- 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