diff options
Diffstat (limited to 'agent/keyformat.txt')
-rw-r--r-- | agent/keyformat.txt | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/agent/keyformat.txt b/agent/keyformat.txt index e246e888c..841e5840f 100644 --- a/agent/keyformat.txt +++ b/agent/keyformat.txt @@ -159,7 +159,34 @@ second list with the information has this layout: More items may be added to the list. - +OpenPGP Private Key Transfer Format +=================================== + +This format is used to transfer keys between gpg and gpg-agent. + +(openpgp-private-key + (version V) + (protection PROTTYPE PROTALGO IV S2KMODE S2KHASH S2KSALT S2KCOUNT) + (algo PUBKEYALGO) + (skey CSUM c P1 c P2 c P3 ... e PN)) + + +* V is the packet version number (3 or 4). +* PUBKEYALGO is a Libgcrypt algo name +* CSUM is the 16 bit checksum as defined by OpenPGP. +* P1 .. PN are the parameters; the public parameters are never encrypted + the secrect key parameters are encrypted if the "protection" list is + given. To make this more explicit each parameter is preceded by a + flag "_" for cleartext or "e" for encrypted text. +* If PROTTYPE is "sha1" the new style SHA1 checksum is used if it is "sum" + the old 16 bit checksum is used and if it is "none" no protection at + all is used. +* PROTALGO is a Libgcrypt style cipher algorithm name +* IV is the initialization verctor. +* S2KMODE is the value from RFC-4880. +* S2KHASH is a a libgcrypt style hash algorithm identifier. +* S2KSALT is the 8 byte salt +* S2KCOUNT is the count value from RFC-4880. |