Struct eccoxide::curve::sec2::p224k1::FieldElement [−][src]
pub struct FieldElement(_);
Expand description
Element of the prime field Fp where p = 2^224 - 2^32 - 2^12 - 2^11 - 2^9 - 2^7 - 2^4 - 2 - 1
Implementations
Size in bytes of this element of the field
Return a new element that is the square of this one
Always true: self.square() == self * self
Double the field element, this is equivalent to 2*self or self+self, but can be implemented faster
Compute the field element raised to a power of n, modulus p
Compute the field element raised to a power of n, modulus p
Similar to ‘from_bytes’ but take values from a slice.
If the slice is not of the right size, then None is returned
Initialize a new scalar from its bytes representation (BE)
This doesn’t verify if the element represented fits in the field, so that run the run of having elements that are greater or equal than the order of the field
Initialize a new scalar from its bytes representation (BE)
If the represented value overflow the field element size, then None is returned.
Trait Implementations
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Performs the conversion.
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the -
operator.
Performs the -
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for FieldElement
impl Send for FieldElement
impl Sync for FieldElement
impl Unpin for FieldElement
impl UnwindSafe for FieldElement
Blanket Implementations
Mutably borrows from an owned value. Read more