diff --git a/src/hash_to_curve/expand_msg.rs b/src/hash_to_curve/expand_msg.rs index 2b9beca6..e9993aab 100644 --- a/src/hash_to_curve/expand_msg.rs +++ b/src/hash_to_curve/expand_msg.rs @@ -45,7 +45,7 @@ impl ExpandMsgDst { /// /// `L` **MUST** be set to `ceil(2 * k / 8)`, where `k` is the security parameter. It /// is used when handling DST values longer than 255 bytes. - pub fn for_xof(dst: &[u8]) -> Self + fn for_xof(dst: &[u8]) -> Self where H: Default + Update + ExtendableOutput, L: ArrayLength + IsLess, @@ -67,7 +67,7 @@ impl ExpandMsgDst { } /// Produces a DST for use with `expand_message_xmd`. - pub fn for_xmd(dst: &[u8]) -> Self + fn for_xmd(dst: &[u8]) -> Self where H: Default + FixedOutput + Update, { @@ -89,12 +89,12 @@ impl ExpandMsgDst { } /// Returns the raw bytes of the DST. - pub fn data(&self) -> &[u8] { + fn data(&self) -> &[u8] { &self.dst[..self.len] } /// Returns the length of the DST. - pub fn len(&self) -> usize { + fn len(&self) -> usize { self.len } }