Skip to content

Commit

Permalink
Merge branch 'md6' of https://github.com/iwiwsb/hashes into md6
Browse files Browse the repository at this point in the history
  • Loading branch information
iwiwsb committed Nov 29, 2023
2 parents 08522b2 + 62b6ff1 commit 6476d63
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ascon-hash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cargo-hack-install@master
# TODO: remove after bump to MSRV 1.60+
- run: cargo update
- run: cargo update -p zeroize --precise 1.6.0
- run: cargo hack build --target ${{ matrix.target }} --each-feature --exclude-features default,std

minimal-versions:
Expand All @@ -64,4 +67,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
- uses: RustCrypto/actions/cargo-hack-install@master
# TODO: remove after bump to MSRV 1.60+
- run: cargo update
- run: cargo update -p zeroize --precise 1.6.0
- run: cargo hack test --feature-powerset
1 change: 1 addition & 0 deletions .github/workflows/blake2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}
stable-cmd: cargo hack test --release --feature-powerset --exclude-features simd,simd_opt,simd_asm

simd:
runs-on: ubuntu-latest
Expand Down
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 6476d63

Please sign in to comment.