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

Method from_openssh

ssh-key/src/private.rs:235–237  ·  view source on GitHub ↗

Parse an OpenSSH-formatted PEM private key. OpenSSH-formatted private keys begin with the following: ```text -----BEGIN OPENSSH PRIVATE KEY----- ``` # Errors Returns [`Error::Encoding`] in the event of an encoding error.

(pem: impl AsRef<[u8]>)

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