std::crypto::ed25519

Public

Functions

NameDescription
ed25519::public_keygenGenerate a public key from a private key.
ed25519::signSign a message.
ed25519::verifyVerify the signature of a message.

Private

Types

NameDescription
Unpacking
Projection
Point

Functions

NameDescription
ed25519::unprojectConvert projective to affine coordinates.
ed25519::sub_lSubtraction if RHS is less than LHS else identity.
ed25519::reduce_carryReduce an element with carry to at most 2^255+18 (32 bytes)
ed25519::subSubtraction.
ed25519::projectConvert affine to projective coordinates.
ed25519::mulVariable base scalar multiplication.
ed25519::@add
ed25519::unpack_on_curveUncompress a point. Check if it is on the curve.
ed25519::shlLeft shift.
ed25519::from_bytesInterpret bytes as a normalized element.
ed25519::packCompress a point.
ed25519::@mul
ed25519::f25519_selectConstant-time conditional selection. Result is undefined if condition is neither 0 nor 1.
ed25519::negNegation.
ed25519::twiceDouble a point.
ed25519::@sub
ed25519::sqrtCompute the square root of an element.
ed25519::mul_sMultiplication by a small element.
ed25519::addAddition.
ed25519::eqConstant-time equality comparison. Return is non-zero if true.
ed25519::invInverse an element.
ed25519::fbase_selectConstant-time conditional selection. Result is undefined if condition is neither 0 nor 1.
ed25519::normalizeReduce an element to at most 2^255-19

Globals

NameDescription
ONE
ORDER
ZERO
D
DD
NEUTRAL
BASE