From c38e379355602fe4ff11ff65f98c296d5c326281 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 27 May 2020 00:06:53 +0000 Subject: [PATCH] ssh: document that ParseRawPrivateKey supports Ed25519 keys From CL 173457 and CL 235358. --- ssh/keys.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssh/keys.go b/ssh/keys.go index 7296980413..dac8ee7244 100644 --- a/ssh/keys.go +++ b/ssh/keys.go @@ -1087,9 +1087,9 @@ func (*PassphraseMissingError) Error() string { return "ssh: this private key is passphrase protected" } -// ParseRawPrivateKey returns a private key from a PEM encoded private key. It -// supports RSA (PKCS#1), PKCS#8, DSA (OpenSSL), and ECDSA private keys. If the -// private key is encrypted, it will return a PassphraseMissingError. +// ParseRawPrivateKey returns a private key from a PEM encoded private key. It supports +// RSA, DSA, ECDSA, and Ed25519 private keys in PKCS#1, PKCS#8, OpenSSL, and OpenSSH +// formats. If the private key is encrypted, it will return a PassphraseMissingError. func ParseRawPrivateKey(pemBytes []byte) (interface{}, error) { block, _ := pem.Decode(pemBytes) if block == nil {