]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: correct mistake in spec - the private key blobs are encoded
authordjm@openbsd.org <djm@openbsd.org>
Fri, 7 May 2021 02:29:40 +0000 (02:29 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 7 May 2021 02:36:18 +0000 (12:36 +1000)
verbatim and not as strings (i.e. no 4-byte length header)

OpenBSD-Commit-ID: 3606b5d443d72118c5b76c4af6dd87a5d5a4f837

PROTOCOL.key

index 959bd7aeec22dd19696e48079ce2dd6979286acd..38df268b6536f1d0e245d07f704953abf6242d90 100644 (file)
@@ -35,9 +35,9 @@ of the cipher block size.
 
        uint32  checkint
        uint32  checkint
-       string  privatekey1
+       byte[]  privatekey1
        string  comment1
-       string  privatekey2
+       byte[]  privatekey2
        string  comment2
        ...
        string  privatekeyN
@@ -48,6 +48,9 @@ of the cipher block size.
        ...
        char    padlen % 255
 
+where each private key is encoded using the same rules as used for
+SSH agent.
+
 Before the key is encrypted, a random integer is assigned
 to both checkint fields so successful decryption can be
 quickly checked by verifying that both checkint fields
@@ -65,4 +68,4 @@ For unencrypted keys the cipher "none" and the KDF "none"
 are used with empty passphrases. The options if the KDF "none"
 are the empty string.
 
-$OpenBSD: PROTOCOL.key,v 1.1 2013/12/06 13:34:54 markus Exp $
+$OpenBSD: PROTOCOL.key,v 1.2 2021/05/07 02:29:40 djm Exp $