mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +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)`
|
||||
/// (an invalid projective point in the Montgomery model).
|
||||
///
|
||||
/// The doubling case is degenerate, in that using this method to accomplish
|
||||
/// point doubling is less efficient than using `differential_double()`.
|
||||
/// The doubling case is degenerate, in that `P ⦵ Q ∉ {O,T}`, where `T` is
|
||||
/// the two torsion point.
|
||||
fn differential_add(&self, that: &MontgomeryPoint,
|
||||
difference: &MontgomeryPoint) -> MontgomeryPoint {
|
||||
// XXX Do we want these debug assertions? We would need to implement
|
||||
|
|
|
|||
Loading…
Reference in a new issue