Struct curve25519_dalek::curve::CompressedPoint [] [src]

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

An affine point (x,y) on the curve is determined by the y-coordinate and the sign of x, marshalled into a 32-byte array.

The first 255 bits of a CompressedPoint represent the y-coordinate. The high bit of the 32nd byte gives the sign of x.

Methods

impl CompressedPoint
[src]

View this CompressedPoint as an array of bytes.

Attempt to decompress to an ExtendedPoint.

Warning

This function will fail and return None if both vx²-u=0 and vx²+u=0.

Trait Implementations

impl Copy for CompressedPoint
[src]

impl Clone for CompressedPoint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CompressedPoint
[src]

Formats the value using the given formatter.

impl Eq for CompressedPoint
[src]

impl PartialEq for CompressedPoint
[src]

Determine if this CompressedPoint is equal to another.

Warning

This function is NOT constant time.

This method tests for !=.

impl Index<usize> for CompressedPoint
[src]

The returned type after indexing

The method for the indexing (container[index]) operation