MCPcopy Create free account
hub / github.com/RustCrypto/signatures / from_components

Method from_components

dsa/src/components.rs:44–57  ·  view source on GitHub ↗

Construct the common components container from its inner values (`p`, `q`, and `g`). - `p` must be odd - `g` must less than `p` # Errors Returns [`signature::Error`] if any of the following occur: - components aren't sized appropriately for a 1024-bit, 2048-bit, or 3072-bit key - any of `p`, `q`, or `g` are less than `2` - `p` is even instead of odd - `g > p`

(p: BoxedUint, q: BoxedUint, g: BoxedUint)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
matchesMethod · 0.80

Tested by

no test coverage detected