Files
Andrei 67410fb9e4 openpgp: Fix padding of EdDSA signature MPIs.
Previous behaviour only correctly padded MPIs of 31 bytes, however it is also
possible for Ed25519 keys to be less than 31 bytes which is particularly
visible for the legacy Ed25519 format, which can cause erroneous signature
verification failures in some unlucky cases.  See section 11.3.1 of RFC 9580.

* guix/openpgp.scm (get-signature)[get-sig]: Pad when BV is shorter than 32
bytes.
* tests/openpgp.scm (%short-hello-signature/ed25519/sha512): New variable.
("verify-openpgp-signature, good signatures"): Test it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #10979
2026-09-04 22:58:15 +02:00
..
2025-08-31 12:39:24 +02:00
2025-12-03 14:38:09 +09:00
2026-04-19 10:54:06 +03:00
2025-11-21 14:38:44 +01:00
2026-04-30 02:07:20 +02:00
2025-10-29 11:51:24 +09:00
2025-11-14 16:42:16 +09:00
2026-08-08 23:01:52 +01:00