pub struct MontgomeryPoint(pub [u8; 56]);Expand description
A point in Montgomery form
Tuple Fields§
§0: [u8; 56]Implementations§
Source§impl MontgomeryPoint
impl MontgomeryPoint
Sourcepub const LOW_A: MontgomeryPoint
pub const LOW_A: MontgomeryPoint
First low order point on Curve448 and it’s twist
Sourcepub const LOW_B: MontgomeryPoint
pub const LOW_B: MontgomeryPoint
Second low order point on Curve448 and it’s twist
Sourcepub const LOW_C: MontgomeryPoint
pub const LOW_C: MontgomeryPoint
Third low order point on Curve448 and it’s twist
Source§impl MontgomeryPoint
impl MontgomeryPoint
Sourcepub fn to_edwards(&self, _sign: u8) -> Option<EdwardsPoint>
pub fn to_edwards(&self, _sign: u8) -> Option<EdwardsPoint>
Convert this point to an EdwardsPoint
Sourcepub fn is_low_order(&self) -> bool
pub fn is_low_order(&self) -> bool
Returns true if the point is one of the low order points
Sourcepub fn to_projective(&self) -> ProjectiveMontgomeryPoint
pub fn to_projective(&self) -> ProjectiveMontgomeryPoint
Convert the point to a ProjectiveMontgomeryPoint
Trait Implementations§
Source§impl Clone for MontgomeryPoint
impl Clone for MontgomeryPoint
Source§fn clone(&self) -> MontgomeryPoint
fn clone(&self) -> MontgomeryPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConstantTimeEq for MontgomeryPoint
impl ConstantTimeEq for MontgomeryPoint
Source§impl Debug for MontgomeryPoint
impl Debug for MontgomeryPoint
Source§impl Default for MontgomeryPoint
impl Default for MontgomeryPoint
Source§fn default() -> MontgomeryPoint
fn default() -> MontgomeryPoint
Returns the “default value” for a type. Read more
Source§impl Mul<&MontgomeryPoint> for &EdwardsScalar
impl Mul<&MontgomeryPoint> for &EdwardsScalar
Source§type Output = MontgomeryPoint
type Output = MontgomeryPoint
The resulting type after applying the
* operator.Source§fn mul(self, point: &MontgomeryPoint) -> MontgomeryPoint
fn mul(self, point: &MontgomeryPoint) -> MontgomeryPoint
Performs the
* operation. Read moreSource§impl Mul<&Scalar<Ed448>> for &MontgomeryPoint
impl Mul<&Scalar<Ed448>> for &MontgomeryPoint
Source§type Output = MontgomeryPoint
type Output = MontgomeryPoint
The resulting type after applying the
* operator.Source§fn mul(self, scalar: &EdwardsScalar) -> MontgomeryPoint
fn mul(self, scalar: &EdwardsScalar) -> MontgomeryPoint
Performs the
* operation. Read moreSource§impl PartialEq for MontgomeryPoint
impl PartialEq for MontgomeryPoint
impl Copy for MontgomeryPoint
impl DefaultIsZeroes for MontgomeryPoint
impl Eq for MontgomeryPoint
Auto Trait Implementations§
impl Freeze for MontgomeryPoint
impl RefUnwindSafe for MontgomeryPoint
impl Send for MontgomeryPoint
impl Sync for MontgomeryPoint
impl Unpin for MontgomeryPoint
impl UnsafeUnpin for MontgomeryPoint
impl UnwindSafe for MontgomeryPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more