You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a signature is made over a key, the hash data starts with the
octet 0x99, followed by a two-octet length of the key, and then body
of the key packet. (Note that this is an old-style packet header for
a key packet with two-octet length.)
When a version 4 signature is made over a key, the hash data starts
with the octet 0x99, followed by a 2-octet length of the key,
followed by the body of the key packet. When a version 6 signature is
made over a key, the hash data starts with the salt and then octet
0x9B, followed by a 4-octet length of the key, followed by the body
of the key packet.
Note how the key packet's hashed data changes based not on the version
of the key, but on the version of the signature being generated. I find
that very surprising, and in my v6 implementation I promptly did it
"wrong". Today, I surveyed all other WIP v6 implementations, and found
it is split 50/50:
falko-strenzke
changed the title
fix signature version vs. key version mix-up during signature generation
PR ready: fix signature version vs. key version mix-up during signature generation
Aug 21, 2024
Justus Winter reported on the mailinglist:
Justus ask if the C-R should be treated as buggy in this point, so we should hold this until that is clarified among the implementers.
The text was updated successfully, but these errors were encountered: