X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/8404fd750e8d1a635ccb3895e4f0e155e5f5e3cf..c65df27983057ec76ed0e72bb370f9a5ae7dad28:/keyring.5 diff --git a/keyring.5 b/keyring.5 index 10b2f5b..b155112 100644 --- a/keyring.5 +++ b/keyring.5 @@ -183,11 +183,13 @@ The integer is stored, base-256, one digit per octet, in big-endian order, using as few octets as possible. The value 0 has length zero. .TP .B "struct" -A sequence of subkeys is stored. Each subkey consists of a single -octet giving the length of the subkey's label; the label itself in -ASCII, zero-octet padding to make the subkey start at a multiple of four -octets, and then the encoding of the subkey. There is no terminator: -the outer length field indicates when to stop reading subkeys. +A sequence of subkeys is stored; the sequence is sorted by +lexicographical order of the subkeys' labels. Each subkey consists of a +single octet giving the length of the subkey's label; the label itself +in ASCII, zero-octet padding to make the subkey start at a multiple of +four octets, and then the encoding of the subkey. There is no +terminator: the outer length field indicates when to stop reading +subkeys. .TP .B "string" The string is stored as-is, with no terminator. @@ -206,5 +208,13 @@ the two coordinates. .B "encrypt" The key data is encoded as binary and encrypted as described above. The resulting ciphertext is stored as is. +.SS "Fingerprints" +The fingerprint is computed by hashing the binary representation of (the +selected parts of) a key's data followed by the key type preceded by a +single length octet, and the key's attributes, in lexicographic order of +the attribute name. Each attribute consists of the attribute's name +preceded by a single length octet, followed by the value preceded by a +two-octet length. The lengths do not include themselves; neither string +has a terminator character; there is no padding. .SH AUTHOR Mark Wooding,