mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Clarify doc note on degenerate cases for differential addition.
This commit is contained in:
parent
7b378ada6b
commit
ca5b58c2b7
1 changed files with 2 additions and 2 deletions
|
|
@ -327,8 +327,8 @@ impl MontgomeryPoint {
|
||||||
/// results of this method are not correct, but instead result in `(0:0)`
|
/// results of this method are not correct, but instead result in `(0:0)`
|
||||||
/// (an invalid projective point in the Montgomery model).
|
/// (an invalid projective point in the Montgomery model).
|
||||||
///
|
///
|
||||||
/// The doubling case is degenerate, in that using this method to accomplish
|
/// The doubling case is degenerate, in that `P ⦵ Q ∉ {O,T}`, where `T` is
|
||||||
/// point doubling is less efficient than using `differential_double()`.
|
/// the two torsion point.
|
||||||
fn differential_add(&self, that: &MontgomeryPoint,
|
fn differential_add(&self, that: &MontgomeryPoint,
|
||||||
difference: &MontgomeryPoint) -> MontgomeryPoint {
|
difference: &MontgomeryPoint) -> MontgomeryPoint {
|
||||||
// XXX Do we want these debug assertions? We would need to implement
|
// XXX Do we want these debug assertions? We would need to implement
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue