(in []byte)
| 230 | } |
| 231 | |
| 232 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…