|
@ -128,7 +128,7 @@ impl PointProjective { |
|
|
|
|
|
|
|
|
#[allow(clippy::many_single_char_names)]
|
|
|
#[allow(clippy::many_single_char_names)]
|
|
|
pub fn add(&self, q: &PointProjective) -> PointProjective {
|
|
|
pub fn add(&self, q: &PointProjective) -> PointProjective {
|
|
|
// add-2008-bbjlp https://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html#doubling-dbl-2008-bbjlp
|
|
|
|
|
|
|
|
|
// add-2008-bbjlp https://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html#addition-add-2008-bbjlp
|
|
|
let mut a = self.z;
|
|
|
let mut a = self.z;
|
|
|
a.mul_assign(&q.z);
|
|
|
a.mul_assign(&q.z);
|
|
|
let mut b = a;
|
|
|
let mut b = a;
|
|
|