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

Method new

ssh-key/src/public/dsa.rs:40–46  ·  view source on GitHub ↗

Create a new [`DsaPublicKey`] with the following components: - `p`: prime modulus. - `q`: prime divisor of `p - 1`. - `g`: generator of a subgroup of order `q` in the multiplicative group `GF(p)`, such that `1 < g < p`. - `y`: the public key, where `y = gˣ mod p`. # Errors Returns [`Error::FormatEncoding`] in the event any of the components are negative.

(p: Mpint, q: Mpint, g: Mpint, y: 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