pub struct Ristretto255;
Expand description

Implementation for Ristretto255.

Trait Implementations

The ciphersuite identifier as dictated by https://datatracker.ietf.org/doc/draft-irtf-cfrg-voprf/ Read more
A finite cyclic group along with a point representation that allows some customization on how to hash an input to a curve point. See Group. Read more
The main hash function to use (for HKDF computations and hashing transcripts). Read more
The type of group elements
The byte length necessary to represent group elements
The type of base field scalars
The byte length necessary to represent scalars
Transforms a password and domain separation tag (DST) into a curve point Read more
Hashes a slice of pseudo-random bytes to a scalar Read more
Get the base point for the group
Returns the identity group element
Serializes the self group element
Return an element from its fixed-length bytes representation. If the element is the identity element, return an error. Read more
picks a scalar at random
The multiplicative inverse of this scalar
Returns true if the scalar is zero.
Serializes a scalar to bytes
Return a scalar from its fixed-length bytes representation. If the scalar is zero or invalid, then return an error. Read more
Returns true if the element is equal to the identity element
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.