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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=092603c5b2f2ef8070157c020ccc826fd1c6ef12;p=thirdparty%2Frspamd.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 8382c8f683..c5649da1ec 100644 --- a/src/libcryptobox/cryptobox.h +++ b/src/libcryptobox/cryptobox.h @@ -45,7 +45,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