[−][src]Crate ff
This crate provides traits for working with finite fields.
Structs
BitIterator | Takes a little-endian representation of some value, and returns its bits in big-endian order. |
Traits
Endianness | Helper trait for converting the binary representation of a prime field element into a specific endianness. This is useful when you need to act on the bit representation of an element generically, as the native binary representation of a prime field is field-dependent. |
Field | This trait represents an element of a field. |
PrimeField | This represents an element of a prime field. |
Functions
adc | Calculate a + b + carry, returning the sum and modifying the carry value. |
mac_with_carry | Calculate a + (b * c) + carry, returning the least significant digit and setting carry to the most significant digit. |
sbb | Calculate a - b - borrow, returning the result and modifying the borrow value. |