Skip to content

Commit

Permalink
Expose belt_compress to public (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
makavity authored Nov 22, 2023
1 parent 9f66cb8 commit f3b657c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions belt-hash/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.1 (2022-11-22)
### Added
- `belt_compress` function ([#520])

[#520]: https://github.com/RustCrypto/hashes/pull/520

## 0.1.0 (2022-09-23)
- Initial release ([#416])

Expand Down
2 changes: 1 addition & 1 deletion belt-hash/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "belt-hash"
version = "0.1.0"
version = "0.1.1"
description = "BelT hash function (STB 34.101.31-2020)"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion belt-hash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub type BeltHash = CoreWrapper<BeltHashCore>;

/// 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]];

Expand Down

0 comments on commit f3b657c

Please sign in to comment.