Expand description
Import prelude for this crate: includes important traits.
Traits§
- AddMod
- Compute
self + rhs mod p
. - Bounded
- Integers whose representation takes a bounded amount of space.
- Checked
Add - Checked addition.
- Checked
Mul - Checked multiplication.
- Checked
Sub - Checked subtraction.
- Concat
- Concatenate two numbers into a “wide” double-width value, using the
lo
value as the least significant value. - Concat
Mixed - Concatenate two numbers into a “wide” combined-width value, using the
lo
value as the least significant value. - Encoding
- Encoding support.
- Integer
- Integer type.
- Invert
- Constant-time inversion.
- MulMod
- Compute
self * rhs mod p
. - Multi
Exponentiate - Performs modular multi-exponentiation using Montgomery’s ladder.
- Multi
Exponentiate Bounded Exp - Performs modular multi-exponentiation using Montgomery’s ladder.
exponent_bits
represents the number of bits to take into account for the exponent. - NegMod
- Compute
-self mod p
. - Pow
- Constant-time exponentiation.
- PowBounded
Exp - Constant-time exponentiation with exponent of a bounded bit size.
- Split
- Split a number in half, returning the most significant half followed by the least significant.
- Split
Mixed - Split a number into parts, returning the most significant part followed by the least significant.
- Square
- Support for optimized squaring
- SubMod
- Compute
self - rhs mod p
. - Zero
- Zero values.