]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] ARC module now supports ed25519 keys
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 15 Oct 2025 11:39:54 +0000 (12:39 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 15 Oct 2025 11:39:54 +0000 (12:39 +0100)
commit50c6dc5bbf8cd3259aa19fa92aa5a5ee45806f3e
tree38259cdd279c91d7839aea5b5414c8144fb562de
parent5a7f2b9aec0b79bdf312d8afde56f41c3def7422
[Fix] ARC module now supports ed25519 keys

- Remove hardcoded RSA-only restriction in do_sign()
- Replace manual RSA-specific key loading and signing in arc_sign_seal()
- Use native C dkim_sign() function with sign_type='arc-seal'
- Leverages existing C infrastructure that supports both RSA and ed25519
- Fixes 'DECODER routines::unsupported' error when loading ed25519 keys
- Algorithm detection (rsa-sha256 vs ed25519-sha256) now automatic
- Reduces arc_sign_seal() from ~100 lines to ~50 lines
- No FFI dependency, works with plain Lua installations

Resolves RSP-76
src/plugins/lua/arc.lua