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

Method new

ssh-key/src/private/rsa.rs:43–49  ·  view source on GitHub ↗

Create a new RSA private key with the following components: - `d`: RSA private exponent. - `iqmp`: CRT coefficient: `(inverse of q) mod p`. - `p`: First prime factor of `n`. - `q`: Second prime factor of `n`. # Errors Returns [`Error::FormatEncoding`] if any of the provided values are negative.

(d: Mpint, iqmp: Mpint, p: Mpint, q: Mpint)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

is_positiveMethod · 0.80

Tested by

no test coverage detected