update comment

This commit is contained in:
Neemek 2025-10-12 11:54:02 +02:00
parent cb5953f79a
commit b0e01fceb9
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E

View file

@ -216,9 +216,10 @@ fn montgomery_ladder(x: U256, n: U256) -> U256 {
*/
/// # D. J. Bernstein's Curve25519
/// from the curve: \
/// $y^2 = x*(x^2 + 486662x + 1)$
/// => A = 486662, B = 1, p = 2^255 - 19
/// $y^2 = x*(x^2 + 486662x + 1)$ \
/// where A = 486662, B = 1, p = 2^255 - 19
pub const CURVE_25519: MontgomeryCurve = MontgomeryCurve::new(
U256::from_u32(486662u32),
U256::ONE,