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.
Constants
A |
In Montgomery form y² = x³+Ax²+x, Curve25519 has A=486662. |
APLUS2_OVER_FOUR |
|
BASE_CMPRSSD |
Basepoint has y = 4/5. |
BASE_COMPRESSED_MONTGOMERY |
The X25519 basepoint, in compressed Montgomery form. |
ED25519_BASEPOINT_POINT |
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]. |
HALF |
Precomputed value of 1/2 (mod p). |
HALF_P_MINUS_1_BYTES |
(p-1)/2, in little-endian bytes. |
HALF_Q_MINUS_1_BYTES |
|
MSQRT_M1 |
Precomputed value of the other square root of -1 (mod p),
i.e., |
SQRT_M1 |
Precomputed value of one of the square roots of -1 (mod p) |
SQRT_MINUS_A |
|
SQRT_MINUS_APLUS2 |
|
SQRT_MINUS_HALF |
|
a_minus_d | |
bi | |
d | |
d2 | |
d4 | |
inv_a_minus_d | |
invsqrt_a_minus_d | |
l |
|
l_minus_1 |
|
l_minus_2 |
|