mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
remove pub from x25519 fn
This commit is contained in:
parent
7cf01d82d9
commit
a599644406
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ fn decode_scalar(scalar: &[u8; 32]) -> Scalar {
|
|||
}
|
||||
|
||||
/// The x25519 function, as specified in RFC7748.
|
||||
pub fn x25519(scalar: &Scalar, point: &MontgomeryPoint) -> MontgomeryPoint {
|
||||
fn x25519(scalar: &Scalar, point: &MontgomeryPoint) -> MontgomeryPoint {
|
||||
let k: Scalar = decode_scalar(scalar.as_bytes());
|
||||
|
||||
(k * point)
|
||||
|
|
|
|||
Loading…
Reference in a new issue