Skip to content

Commit

Permalink
Remove pub qualifiers from non-pub ExpandMsgDst
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Jul 21, 2024
1 parent cf264e6 commit 9a81247
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hash_to_curve/expand_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<H, L>(dst: &[u8]) -> Self
fn for_xof<H, L>(dst: &[u8]) -> Self
where
H: Default + Update + ExtendableOutput,
L: ArrayLength<u8> + IsLess<U256>,
Expand All @@ -67,7 +67,7 @@ impl ExpandMsgDst {
}

/// Produces a DST for use with `expand_message_xmd`.
pub fn for_xmd<H>(dst: &[u8]) -> Self
fn for_xmd<H>(dst: &[u8]) -> Self
where
H: Default + FixedOutput + Update,
{
Expand All @@ -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
}
}
Expand Down

0 comments on commit 9a81247

Please sign in to comment.