draft-ietf-openpgp-rfc4880bis-04

Werner Koch wk at gnupg.org
Tue Feb 13 14:02:37 CET 2018


On Fri,  9 Feb 2018 03:18, gnupg-users at gnupg.org said:

> ...and that's the end of hashed subpackets. That should be all that is hashed for the signature, yet there is the remaining octets in m:
>
>  04ff0000000c

See 5.2.4, Computing Signatures:

| V4 signatures also hash in a final trailer of six octets: the version
| of the Signature packet, i.e., 0x04; 0xFF; and a four-octet,
| big-endian number that is the length of the hashed data from the
| Signature packet (note that this number does not include these final
| six octets).
| 
| V5 signatures instead hash in a ten-octet trailer: the version of the
| Signature packet, i.e., 0x05; 0xFF; and an eight-octet, big-endian
| number that is the length of the hashed data from the Signature packet
| (note that this number does not include these final ten octets).



Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20180213/bae861a3/attachment.sig>


More information about the Gnupg-users mailing list