MCPcopy Create free account
hub / github.com/RustCrypto/SSH / new

Method new

ssh-key/src/algorithm.rs:146–148  ·  view source on GitHub ↗

Decode algorithm from the given string identifier. # Supported algorithms - `ecdsa-sha2-nistp256` - `ecdsa-sha2-nistp384` - `ecdsa-sha2-nistp521` - `ssh-dss` - `ssh-ed25519` - `ssh-rsa` - `sk-ecdsa-sha2-nistp256@openssh.com` (FIDO/U2F key) - `sk-ssh-ed25519@openssh.com` (FIDO/U2F key) Any other algorithms are mapped to the [`Algorithm::Other`] variant. # Errors Returns [`Error::Encoding`] in th

(id: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected