Macros§
- MontFp
- Construct a
Fp<MontBackend<T, N>, N>
element from a literal string. This should be used primarily for constructing constant field elements; in a non-const context,Fp::from_str
is preferable.
Structs§
- Fp
- Represents an element of the prime field F_p, where
p == P::MODULUS
. This type can represent elements in any field of size at most N * 64 bits. - Mont
Backend
Traits§
- FpConfig
- A trait that specifies the configuration of a prime field. Also specifies how to perform arithmetic on field elements.
- Mont
Config - A trait that specifies the constants and arithmetic procedures
for Montgomery arithmetic over the prime field defined by
MODULUS
.
Functions§
- can_
use_ no_ carry_ mul_ optimization - can_
use_ no_ carry_ square_ optimization - inv
- Compute -M^{-1} mod 2^64.
- modulus_
has_ spare_ bit - sqrt_
precomputation
Type Aliases§
Derive Macros§
- Mont
Config - Derive the
MontConfig
trait.