Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
'sm3-v*',
'streebog-v*',
'tiger-v*',
'turbo-shake-v*',
'turboshake-v*',
'whirlpool-v*',
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: turbo-shake
name: turboshake

on:
pull_request:
paths:
- ".github/workflows/turbo-shake.yml"
- "turbo-shake/**"
- ".github/workflows/turboshake.yml"
- "turboshake/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: turbo-shake
working-directory: turboshake

env:
CARGO_INCREMENTAL: 0
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ members = [
"sm3",
"streebog",
"tiger",
"turbo-shake",
"turboshake",
"whirlpool",
]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ easily used for bare-metal or WebAssembly programming by disabling default crate
| [SM3] (OSCCA GM/T 0004-2012) | [`sm3`] | [![crates.io](https://img.shields.io/crates/v/sm3.svg)](https://crates.io/crates/sm3) | [![Documentation](https://docs.rs/sm3/badge.svg)](https://docs.rs/sm3) | 1.85 | :green_heart: |
| [Streebog] (GOST R 34.11-2012) | [`streebog`] | [![crates.io](https://img.shields.io/crates/v/streebog.svg)](https://crates.io/crates/streebog) | [![Documentation](https://docs.rs/streebog/badge.svg)](https://docs.rs/streebog) | 1.85 | :yellow_heart: |
| [Tiger] | [`tiger`] | [![crates.io](https://img.shields.io/crates/v/tiger.svg)](https://crates.io/crates/tiger) | [![Documentation](https://docs.rs/tiger/badge.svg)](https://docs.rs/tiger) | 1.85 | :green_heart: |
| [TurboSHAKE] | [`turbo-shake`] | [![crates.io](https://img.shields.io/crates/v/turbo-shake.svg)](https://crates.io/crates/turbo-shake) | [![Documentation](https://docs.rs/turbo-shake/badge.svg)](https://docs.rs/turbo-shake) | 1.85 | :green_heart: |
| [TurboSHAKE] | [`turboshake`] | [![crates.io](https://img.shields.io/crates/v/turboshake.svg)](https://crates.io/crates/turboshake) | [![Documentation](https://docs.rs/turboshake/badge.svg)](https://docs.rs/turboshake) | 1.85 | :green_heart: |
| [Whirlpool] | [`whirlpool`] | [![crates.io](https://img.shields.io/crates/v/whirlpool.svg)](https://crates.io/crates/whirlpool) | [![Documentation](https://docs.rs/whirlpool/badge.svg)](https://docs.rs/whirlpool) | 1.85 | :green_heart: |

NOTE: the [`blake3`] crate implements the `digest` traits used by the rest of the hashes in this repository, but is maintained by the BLAKE3 team.
Expand Down Expand Up @@ -118,7 +118,7 @@ Unless you explicitly state otherwise, any contribution intentionally submitted
[`sm3`]: ./sm3
[`streebog`]: ./streebog
[`tiger`]: ./tiger
[`turbo-shake`]: ./turbo-shake
[`turboshake`]: ./turboshake
[`whirlpool`]: ./whirlpool

[//]: # (footnotes)
Expand Down
2 changes: 1 addition & 1 deletion sha3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- `std` crate feature ([#678])
- `CShake128/256` and `TurboShake128/256` types by moving them to
`cshake` and `turbo-shake` crates respectively ([#815])
`cshake` and `turboshake` crates respectively ([#815])

[#652]: https://github.com/RustCrypto/hashes/pull/652
[#678]: https://github.com/RustCrypto/hashes/pull/678
Expand Down
7 changes: 5 additions & 2 deletions turbo-shake/CHANGELOG.md → turboshake/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ 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.0 (UNRELEASED)
- Initial release with implementation moved from the `sha3` crate ([#815])
## 0.6.0 (UNRELEASED)
Note: the crate was transferred to RustCrypto from https://github.com/itzmeanjan/turboshake

### Changed
- New implementation moved from the `sha3` crate ([#815])

[#815]: https://github.com/RustCrypto/hashes/pull/815
6 changes: 3 additions & 3 deletions turbo-shake/Cargo.toml → turboshake/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "turbo-shake"
version = "0.1.0"
name = "turboshake"
version = "0.6.0"
authors = ["RustCrypto Developers"]
edition = "2024"
rust-version = "1.85"
documentation = "https://docs.rs/turbo-shake"
documentation = "https://docs.rs/turboshake"
readme = "README.md"
repository = "https://github.com/RustCrypto/hashes"
license = "MIT OR Apache-2.0"
Expand Down
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions turbo-shake/README.md → turboshake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ these functions do not implement `Digest`, so lower-level traits have to
be imported:

```rust
use turbo_shake::TurboShake128;
use turbo_shake::digest::{Update, ExtendableOutput, XofReader};
use turboshake::TurboShake128;
use turboshake::digest::{Update, ExtendableOutput, XofReader};
use hex_literal::hex;

// With the default domain separator.
Expand Down Expand Up @@ -66,16 +66,16 @@ dual licensed as above, without any additional terms or conditions.

[//]: # (badges)

[crate-image]: https://img.shields.io/crates/v/turbo-shake.svg
[crate-link]: https://crates.io/crates/turbo-shake
[docs-image]: https://docs.rs/turbo-shake/badge.svg
[docs-link]: https://docs.rs/turbo-shake
[crate-image]: https://img.shields.io/crates/v/turboshake.svg
[crate-link]: https://crates.io/crates/turboshake
[docs-image]: https://docs.rs/turboshake/badge.svg
[docs-link]: https://docs.rs/turboshake
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260041-hashes
[build-image]: https://github.com/RustCrypto/hashes/actions/workflows/turbo-shake.yml/badge.svg?branch=master
[build-link]: https://github.com/RustCrypto/hashes/actions/workflows/turbo-shake.yml?query=branch:master
[build-image]: https://github.com/RustCrypto/hashes/actions/workflows/turboshake.yml/badge.svg?branch=master
[build-link]: https://github.com/RustCrypto/hashes/actions/workflows/turboshake.yml?query=branch:master

[//]: # (general links)

Expand Down
2 changes: 1 addition & 1 deletion turbo-shake/benches/mod.rs → turboshake/benches/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extern crate test;

use digest::bench_update;
use test::Bencher;
use turbo_shake::{TurboShake128, TurboShake256};
use turboshake::{TurboShake128, TurboShake256};

bench_update!(
<TurboShake128>::default();
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use core::fmt::Debug;
use digest::ExtendableOutput;
use turbo_shake::{TurboShake128, TurboShake256};
use turboshake::{TurboShake128, TurboShake256};

#[derive(Debug, Clone, Copy)]
pub struct TestVector {
Expand Down Expand Up @@ -47,7 +47,7 @@ where
Ok(())
}

macro_rules! new_turbo_shake_test {
macro_rules! new_test {
($name:ident, $test_name:expr, $hasher:ty, $test_func:ident $(,)?) => {
#[test]
fn $name() {
Expand Down Expand Up @@ -101,26 +101,26 @@ macro_rules! new_turbo_shake_test {
};
}

new_turbo_shake_test!(
new_test!(
turboshake128_6,
"turboshake128_6",
TurboShake128<6>,
turbo_shake_test,
);
new_turbo_shake_test!(
new_test!(
turboshake128_7,
"turboshake128_7",
TurboShake128<7>,
turbo_shake_test,
);
new_turbo_shake_test!(
new_test!(
turboshake256_6,
"turboshake256_6",
TurboShake256<6>,
turbo_shake_test,
);

new_turbo_shake_test!(
new_test!(
turboshake256_7,
"turboshake256_7",
TurboShake256<7>,
Expand Down
Loading