comment PairFromED25519
This commit is contained in:
parent
766e7872a0
commit
c5d6e72720
|
@ -62,6 +62,10 @@ func NewPair(public, private interface{}) (*Pair, error) {
|
|||
}, nil
|
||||
}
|
||||
|
||||
// PairFromED25519 marshalls a valid pair of openssh pem for ED25519 keypairs.
|
||||
// NewPair can handle ed25519 pairs but generates the wrong format apparently:
|
||||
// `Load key "id_ed25519": invalid format` is the error that happens when I try
|
||||
// to ssh with such a key.
|
||||
func PairFromED25519(public ed25519.PublicKey, private ed25519.PrivateKey) (*Pair, error) {
|
||||
// see https://github.com/golang/crypto/blob/7f63de1d35b0f77fa2b9faea3e7deb402a2383c8/ssh/keys.go#L1273-L1443
|
||||
key := struct {
|
||||
|
|
Loading…
Reference in New Issue