Skip to content

Commit

Permalink
ladder() doesn't need to be pub(crate)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Oct 11, 2022
1 parent dd9144a commit f1408d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl PublicKey {
Ok(DHOutput(self.ladder(&sk.0, 256)?))
}

pub(crate) fn ladder(&self, s: &[u8], bits: usize) -> Result<[u8; POINT_BYTES], Error> {
fn ladder(&self, s: &[u8], bits: usize) -> Result<[u8; POINT_BYTES], Error> {
let x1 = Fe::from_bytes(&self.0);
let mut x2 = FE_ONE;
let mut z2 = FE_ZERO;
Expand Down

0 comments on commit f1408d0

Please sign in to comment.