Skip to content

Commit

Permalink
belt-block: expose from_u32 to public
Browse files Browse the repository at this point in the history
  • Loading branch information
makavity committed Jan 22, 2024
1 parent b3831da commit 12583a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion belt-block/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub fn to_u32<const N: usize>(src: &[u8]) -> [u32; N] {
}

#[inline(always)]
fn from_u32<const N: usize>(src: &[u32]) -> [u8; N] {
pub fn from_u32<const N: usize>(src: &[u32]) -> [u8; N] {
assert_eq!(N, 4 * src.len());
let mut res = [0u8; N];
res.chunks_exact_mut(4)
Expand Down

0 comments on commit 12583a4

Please sign in to comment.