From e843180067d8e04f913969261b82ed5bfad0ee76 Mon Sep 17 00:00:00 2001 From: Alexandr Kitaev Date: Mon, 20 Nov 2023 09:47:40 +0300 Subject: [PATCH] Expose belt_compress to public --- belt-hash/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/belt-hash/src/lib.rs b/belt-hash/src/lib.rs index 925ca6094..29b9fbad8 100644 --- a/belt-hash/src/lib.rs +++ b/belt-hash/src/lib.rs @@ -167,7 +167,7 @@ pub type BeltHash = CoreWrapper; /// Compression function described in the section 6.3.2 #[inline(always)] -fn belt_compress(x1: [u32; 4], x2: [u32; 4], x34: [u32; 8]) -> ([u32; 4], [u32; 8]) { +pub fn belt_compress(x1: [u32; 4], x2: [u32; 4], x34: [u32; 8]) -> ([u32; 4], [u32; 8]) { let x3 = [x34[0], x34[1], x34[2], x34[3]]; let x4 = [x34[4], x34[5], x34[6], x34[7]];