update comment
This commit is contained in:
parent
cb5953f79a
commit
b0e01fceb9
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue