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]

View this MontgomeryPoint as an array of bytes.

Convert this MontgomeryPoint to an array of bytes.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MontgomeryPoint
[src]

Formats the value using the given formatter. Read more

impl ConstantTimeEq for MontgomeryPoint
[src]

Equality of MontgomeryPoints is defined mod p.

Determine if two items are equal. Read more

impl PartialEq for MontgomeryPoint
[src]

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

This method tests for !=.

impl Eq for MontgomeryPoint
[src]

impl MulAssign<Scalar> for MontgomeryPoint
[src]

Performs the *= operation.

impl<'b> Mul<&'b Scalar> for MontgomeryPoint
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<Scalar> for &'a MontgomeryPoint
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Scalar> for MontgomeryPoint
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'b> Mul<&'b MontgomeryPoint> for Scalar
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<MontgomeryPoint> for &'a Scalar
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<MontgomeryPoint> for Scalar
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b> Mul<&'b Scalar> for &'a MontgomeryPoint
[src]

Multiply this MontgomeryPoint by a Scalar.

The resulting type after applying the * operator.

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

impl<'b> MulAssign<&'b Scalar> for MontgomeryPoint
[src]

Performs the *= operation.

impl<'a, 'b> Mul<&'b MontgomeryPoint> for &'a Scalar
[src]

The resulting type after applying the * operator.

Performs the * operation.

Auto Trait Implementations