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

Method from_bytes

ssh-encoding/src/mpint.rs:58–60  ·  view source on GitHub ↗

Create a new multiple precision integer from the given big endian-encoded byte slice. Note that this method expects a leading zero on positive integers whose MSB is set, but does NOT* expect a 4-byte length prefix. # Errors Returns [`Error::MpintEncoding`] in the event of an unnecessary leading `0`.

(bytes: &[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