pub struct X25519;
Expand description

Implementation for X25519.

Trait Implementations

The implementation of such a subgroup for Ristretto

Public key
Length of the public key
Secret key
Length of the secret key
Serializes self
Return a public key from its fixed-length bytes representation
Generate a random secret key
Hashes a slice of pseudo-random bytes to a scalar Read more
Returns true if the scalar is zero.
Return a public key from its secret key
Diffie-Hellman key exchange
Serializes self
Return a public key from its fixed-length bytes representation
Corresponds to the DeriveAuthKeyPair() function defined in https://www.ietf.org/archive/id/draft-irtf-cfrg-opaque-08.html#section-6.4.2 Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.