Skip to main content

CURVE25519_P

Constant CURVE25519_P 

Source
pub const CURVE25519_P: [u64; 4];
Expand description

Curve25519 field prime: p = 2^255 - 19 (RFC 7748).

Used only by X25519. Curve25519 is a Montgomery curve and does not plug into the Curve trait (which covers only short Weierstrass curves); X25519 has its own dedicated Montgomery ladder in super::x25519.