mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Make double functions public
This commit is contained in:
parent
dd23a48ade
commit
ee5ea0a013
1 changed files with 2 additions and 2 deletions
|
|
@ -467,7 +467,7 @@ impl CompletedPoint {
|
||||||
|
|
||||||
impl ProjectivePoint {
|
impl ProjectivePoint {
|
||||||
/// Double this point: return self + self
|
/// Double this point: return self + self
|
||||||
fn double(&self) -> CompletedPoint { // Double()
|
pub fn double(&self) -> CompletedPoint { // Double()
|
||||||
let XX = self.X.square();
|
let XX = self.X.square();
|
||||||
let YY = self.Y.square();
|
let YY = self.Y.square();
|
||||||
let ZZ2 = self.Z.square2();
|
let ZZ2 = self.Z.square2();
|
||||||
|
|
@ -487,7 +487,7 @@ impl ProjectivePoint {
|
||||||
|
|
||||||
impl ExtendedPoint {
|
impl ExtendedPoint {
|
||||||
/// Add this point to itself.
|
/// Add this point to itself.
|
||||||
fn double(&self) -> ExtendedPoint {
|
pub fn double(&self) -> ExtendedPoint {
|
||||||
self.to_projective().double().to_extended()
|
self.to_projective().double().to_extended()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue