Module curve25519_dalek::constants
[−]
[src]
This module contains various constants (such as curve parameters
and useful field elements like sqrt(-1)
), as well as
lookup tables of pre-computed points.
Most of the constants are given with
LONG_DESCRIPTIVE_UPPER_CASE_NAMES
, but they can be brought into
scope using a let
binding:
use curve25519_dalek::constants; use curve25519_dalek::edwards::IsIdentity; let B = &constants::RISTRETTO_BASEPOINT_TABLE; let l = &constants::BASEPOINT_ORDER; let A = l * B; assert!(A.is_identity());
Constants
BASEPOINT_ORDER |
|
BASEPOINT_ORDER_MINUS_1 |
|
BASEPOINT_ORDER_MINUS_2 |
|
BASE_CMPRSSD |
Basepoint has y = 4/5. |
BASE_COMPRESSED_MONTGOMERY |
The X25519 basepoint, in compressed Montgomery form. |
ED25519_BASEPOINT_POINT |
The Ed25519 basepoint has y = 4/5. This is called |
ED25519_BASEPOINT_TABLE |
Table containing precomputed multiples of the basepoint |
EIGHT_TORSION |
The 8-torsion subgroup Ɛ[8]. |
RISTRETTO_BASEPOINT_POINT |
The Ed25519 basepoint, as a |
RISTRETTO_BASEPOINT_TABLE |
The Ed25519 basepoint, as a RistrettoPoint |
SQRT_MINUS_HALF |
|