Skip to content

Commit f3b657c

Browse files
authored
Expose belt_compress to public (#520)
1 parent 9f66cb8 commit f3b657c

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

belt-hash/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.1.1 (2022-11-22)
9+
### Added
10+
- `belt_compress` function ([#520])
11+
12+
[#520]: https://github.com/RustCrypto/hashes/pull/520
13+
814
## 0.1.0 (2022-09-23)
915
- Initial release ([#416])
1016

belt-hash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "belt-hash"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "BelT hash function (STB 34.101.31-2020)"
55
authors = ["RustCrypto Developers"]
66
license = "MIT OR Apache-2.0"

belt-hash/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pub type BeltHash = CoreWrapper<BeltHashCore>;
167167

168168
/// Compression function described in the section 6.3.2
169169
#[inline(always)]
170-
fn belt_compress(x1: [u32; 4], x2: [u32; 4], x34: [u32; 8]) -> ([u32; 4], [u32; 8]) {
170+
pub fn belt_compress(x1: [u32; 4], x2: [u32; 4], x34: [u32; 8]) -> ([u32; 4], [u32; 8]) {
171171
let x3 = [x34[0], x34[1], x34[2], x34[3]];
172172
let x4 = [x34[4], x34[5], x34[6], x34[7]];
173173

0 commit comments

Comments
 (0)