MCPcopy Index your code
hub / github.com/smallstep/cli / parseED25519

Function parseED25519

internal/sshutil/sshutil.go:232–243  ·  view source on GitHub ↗
(in []byte)

Source from the content-addressed store, hash-verified

230}
231
232func parseED25519(in []byte) (ed25519.PublicKey, error) {
233 var w struct {
234 KeyBytes []byte
235 Rest []byte `ssh:"rest"`
236 }
237
238 if err := ssh.Unmarshal(in, &w); err != nil {
239 return nil, errors.Wrap(err, "error unmarshaling public key")
240 }
241
242 return ed25519.PublicKey(w.KeyBytes), nil
243}

Callers 1

PublicKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…