From 8c653846df49742c4c85ec37e5d9f8d3ba657895 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 19 Feb 2018 17:33:59 +0100 Subject: [PATCH] ssh: document how to unmarshal public keys Fixes golang/go#21491. Change-Id: I5c720f1f6c6acfa7f4cd50920f65db7e57ba3792 Reviewed-on: https://go-review.googlesource.com/95115 Run-TryBot: Han-Wen Nienhuys TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- ssh/keys.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssh/keys.go b/ssh/keys.go index dadf41a..73697de 100644 --- a/ssh/keys.go +++ b/ssh/keys.go @@ -276,7 +276,8 @@ type PublicKey interface { Type() string // Marshal returns the serialized key data in SSH wire format, - // with the name prefix. + // with the name prefix. To unmarshal the returned data, use + // the ParsePublicKey function. Marshal() []byte // Verify that sig is a signature on the given data using this