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.

BASE_CMPRSSD

Basepoint has y = 4/5.

HALF_Q_MINUS_1_BYTES

HALF_Q_MINUS_1_BYTES is (2255-20)/2 expressed in little endian form.

SQRT_M1
SQRT_MINUS_A

SQRT_MINUS_A is sqrt(-486662)

SQRT_MINUS_HALF

SQRT_MINUS_HALF is sqrt(-1/2)

base

Table containing precomputed multiples of the basepoint B = (x,4/5).

bi
d
d2
l

l is the order of base point, i.e. 2252 + 27742317777372353535851937790883648493, in little-endian form

lminus1

lminus1 is the order of base point minus one, i.e. 2252 + 27742317777372353535851937790883648493 - 1, in little-endian form