Struct eccoxide::curve::sec2::p224r1::Scalar [−][src]
pub struct Scalar(_);
Expand description
Element of the prime field Fp for scalar where p is the order of the SECP224R1 curve
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
Auto Trait Implementations
impl RefUnwindSafe for Scalar
impl UnwindSafe for Scalar
Blanket Implementations
Mutably borrows from an owned value. Read more