mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +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 {
|
||||
/// Double this point: return self + self
|
||||
fn double(&self) -> CompletedPoint { // Double()
|
||||
pub fn double(&self) -> CompletedPoint { // Double()
|
||||
let XX = self.X.square();
|
||||
let YY = self.Y.square();
|
||||
let ZZ2 = self.Z.square2();
|
||||
|
|
@ -487,7 +487,7 @@ impl ProjectivePoint {
|
|||
|
||||
impl ExtendedPoint {
|
||||
/// Add this point to itself.
|
||||
fn double(&self) -> ExtendedPoint {
|
||||
pub fn double(&self) -> ExtendedPoint {
|
||||
self.to_projective().double().to_extended()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue