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

Method decode_as

ssh-key/src/public/key_data.rs:239–261  ·  view source on GitHub ↗

Decode [`KeyData`] for the specified algorithm. # Errors - Returns [`Error::AlgorithmUnknown`] if the provided `algorithm` is unknown or unsupported by this library. - Returns [`Error::Encoding`] in the event of an encoding error.

(reader: &mut impl Reader, algorithm: Algorithm)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.85
curveMethod · 0.45

Tested by

no test coverage detected