Struct curve25519_dalek::montgomery::MontgomeryPoint [] [src]

pub struct MontgomeryPoint(pub [u8; 32]);

Holds the \(u\)-coordinate of a point on the Montgomery form of Curve25519 or its twist.

Methods

impl MontgomeryPoint
[src]

[src]

View this MontgomeryPoint as an array of bytes.

[src]

Convert this MontgomeryPoint to an array of bytes.

[src]

Attempt to convert to an EdwardsPoint, using the supplied choice of sign for the EdwardsPoint.

Return

  • Some(EdwardsPoint) if self is the \(u\)-coordinate of a point on (the Montgomery form of) Curve25519;

  • None if self is the \(u\)-coordinate of a point on the twist of (the Montgomery form of) Curve25519;

Trait Implementations

impl Copy for MontgomeryPoint
[src]

impl Clone for MontgomeryPoint
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MontgomeryPoint
[src]

[src]

Formats the value using the given formatter.

impl Equal for MontgomeryPoint
[src]

Equality of MontgomeryPoints is defined mod p.

[src]

Determine if two items are equal in constant time. Read more

impl PartialEq for MontgomeryPoint
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for MontgomeryPoint
[src]

impl Mul<Scalar> for MontgomeryPoint
[src]

Multiply this MontgomeryPoint by a Scalar.

The resulting type after applying the * operator.

[src]

Given self \( = u_0(P) \), and a Scalar \(n\), return \( u_0([n]P) \).

impl MulAssign<Scalar> for MontgomeryPoint
[src]

[src]

Performs the *= operation.