Fix two typos in docstrings for constants.

This commit is contained in:
Isis Lovecruft 2017-10-05 02:23:34 +00:00
parent 9da24d8afa
commit 29f9090411
Failed to extract signature
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ pub const HALF: FieldElement32 = FieldElement32([
pub const A: FieldElement32 = FieldElement32([ pub const A: FieldElement32 = FieldElement32([
486662, 0, 0, 0, 0, 0, 0, 0, 0, 0, ]); 486662, 0, 0, 0, 0, 0, 0, 0, 0, 0, ]);
/// `APLUS2_OVER_FOUR` is (A+2)/4. (This is used internally within Montgomery laddering.) /// `APLUS2_OVER_FOUR` is (A+2)/4. (This is used internally within the Montgomery ladder.)
pub const APLUS2_OVER_FOUR: FieldElement32 = FieldElement32([121666, 0, 0, 0, 0, 0, 0, 0, 0, 0]); pub const APLUS2_OVER_FOUR: FieldElement32 = FieldElement32([121666, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
/// `SQRT_MINUS_A` is sqrt(-486662) /// `SQRT_MINUS_A` is sqrt(-486662)

View file

@ -54,7 +54,7 @@ pub const HALF: FieldElement64 = FieldElement64([2251799813685239, 2251799813685
/// In Montgomery form y² = x³+Ax²+x, Curve25519 has A=486662. /// In Montgomery form y² = x³+Ax²+x, Curve25519 has A=486662.
pub const A: FieldElement64 = FieldElement64([486662, 0, 0, 0, 0]); pub const A: FieldElement64 = FieldElement64([486662, 0, 0, 0, 0]);
/// `APLUS2_OVER_FOUR` is (A+2)/4. (This is used internally within Montgomery laddering.) /// `APLUS2_OVER_FOUR` is (A+2)/4. (This is used internally within the Montgomery ladder.)
pub const APLUS2_OVER_FOUR: FieldElement64 = FieldElement64([121666, 0, 0, 0, 0]); pub const APLUS2_OVER_FOUR: FieldElement64 = FieldElement64([121666, 0, 0, 0, 0]);
/// `SQRT_MINUS_A` is sqrt(-486662) /// `SQRT_MINUS_A` is sqrt(-486662)