]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] The max size for signing key is actually 65 bytes for p256 5072/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 7 Aug 2024 09:51:53 +0000 (10:51 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 7 Aug 2024 09:51:53 +0000 (10:51 +0100)
src/libcryptobox/cryptobox.h

index 234da2054d39052022ca3919fe851b7f1a2db111..2f68c0ed433295cae7bb907186048ab6071e58ac 100644 (file)
@@ -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