Module crypto_bigint::prelude[][src]

Expand description

Import prelude for this crate: includes important traits.

Traits

Compute self + rhs mod p.

ArrayDecodinggeneric-array

Support for decoding a GenericArray as a big integer.

ArrayEncodinggeneric-array

Support for encoding a big integer as a GenericArray.

Checked addition.

Checked multiplication.

Checked substraction.

Concatenate two numbers into a “wide” twice-width value, using the rhs value as the least significant value.

Encoding support.

Integer type.

Compute self * rhs mod p.

Compute -self mod p.

Randomrand_core

Random number generation support.

RandomModrand_core

Modular random number generation support.

Split a number in half, returning the most significant half followed by the least significant.

Compute self - rhs mod p.

Zero values.