diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-04-25 23:23:51 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-05-04 09:56:12 +0200 |
commit | 4459c7859c286ab54fa3a9901c8a17591b04c516 (patch) | |
tree | 867a6768699931c621b7c41d5fbfaa58f4d5ffa7 /tests/discovery.scm | |
parent | 43408e304ffb1149f35cb539b40d673d567c9116 (diff) | |
download | guix-4459c7859c286ab54fa3a9901c8a17591b04c516.tar guix-4459c7859c286ab54fa3a9901c8a17591b04c516.tar.gz |
openpgp: Decode the issuer-fingerprint signature subpacket.
* guix/openpgp.scm (SUBPACKET-ISSUER-FINGERPRINT): New variable.
(openpgp-signature-issuer-fingerprint): New procedure.
(key-id-matches-fingerprint?): New procedure.
(get-signature): Look for the 'issuer and 'issuer-fingerprint
subpackets. Ensure the issuer key ID matches the fingerprint when both
are available.
(parse-subpackets): Handle SUBPACKET-ISSUER-FINGERPRINT.
* tests/openpgp.scm (%rsa-key-fingerprint)
(%dsa-key-fingerprint, %ed25519-key-fingerprint): New variables.
* tests/openpgp.scm ("get-openpgp-detached-signature/ascii"): Check the
result of 'openpgp-signature-issuer-fingerprint'.
Diffstat (limited to 'tests/discovery.scm')
0 files changed, 0 insertions, 0 deletions