diff --git a/src/map_to_curve.rs b/src/map_to_curve.rs index 24b0525..8854844 100644 --- a/src/map_to_curve.rs +++ b/src/map_to_curve.rs @@ -75,9 +75,9 @@ fn xor(x: &[u8], y: &[u8]) -> Result, InternalPakeError> { Ok(x.iter().zip(y).map(|(&x1, &x2)| x1 ^ x2).collect()) } -// Corresponds to the expand_message_xmd() function defined in -// https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-10.txt -pub(crate) fn expand_message_xmd( +/// Corresponds to the expand_message_xmd() function defined in +/// https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-10.txt +pub fn expand_message_xmd( msg: &[u8], dst: &[u8], len_in_bytes: usize,