From 217dd77976d68de7a76e57b1b136fd0ccd6fd1e2 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 3 Jan 2026 09:17:29 -0700 Subject: [PATCH] Rename `ascon-hash` => `ascon-hash256` We no longer control the `ascon-hash` name. This follows a similar rename we did for AEADs: `ascon-aead` => ascon-aead128` --- .../{ascon-hash.yml => ascon-hash256.yml} | 8 ++++---- Cargo.lock | 4 ++-- Cargo.toml | 2 +- README.md | 4 ++-- {ascon-hash => ascon-hash256}/CHANGELOG.md | 0 {ascon-hash => ascon-hash256}/Cargo.toml | 6 +++--- {ascon-hash => ascon-hash256}/LICENSE-APACHE | 0 {ascon-hash => ascon-hash256}/LICENSE-MIT | 0 {ascon-hash => ascon-hash256}/README.md | 20 +++++++++---------- {ascon-hash => ascon-hash256}/src/lib.rs | 0 .../tests/data/asconhash.txt | 0 .../tests/data/asconxof.txt | 0 .../tests/kats_tests.rs | 2 +- 13 files changed, 23 insertions(+), 23 deletions(-) rename .github/workflows/{ascon-hash.yml => ascon-hash256.yml} (93%) rename {ascon-hash => ascon-hash256}/CHANGELOG.md (100%) rename {ascon-hash => ascon-hash256}/Cargo.toml (89%) rename {ascon-hash => ascon-hash256}/LICENSE-APACHE (100%) rename {ascon-hash => ascon-hash256}/LICENSE-MIT (100%) rename {ascon-hash => ascon-hash256}/README.md (82%) rename {ascon-hash => ascon-hash256}/src/lib.rs (100%) rename {ascon-hash => ascon-hash256}/tests/data/asconhash.txt (100%) rename {ascon-hash => ascon-hash256}/tests/data/asconxof.txt (100%) rename {ascon-hash => ascon-hash256}/tests/kats_tests.rs (96%) diff --git a/.github/workflows/ascon-hash.yml b/.github/workflows/ascon-hash256.yml similarity index 93% rename from .github/workflows/ascon-hash.yml rename to .github/workflows/ascon-hash256.yml index ba9878f7e..c2237af9b 100644 --- a/.github/workflows/ascon-hash.yml +++ b/.github/workflows/ascon-hash256.yml @@ -1,4 +1,4 @@ -name: ascon-hash +name: ascon-hash256 on: pull_request: @@ -11,7 +11,7 @@ on: defaults: run: - working-directory: ascon-hash + working-directory: ascon-hash256 env: RUSTFLAGS: "-Dwarnings" @@ -26,7 +26,7 @@ jobs: set-msrv: uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master with: - msrv: 1.85.0 + msrv: 1.85.0 build: needs: set-msrv @@ -52,7 +52,7 @@ jobs: minimal-versions: uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master with: - working-directory: ${{ github.workflow }} + working-directory: ${{ github.workflow }} test: needs: set-msrv diff --git a/Cargo.lock b/Cargo.lock index c9d073aef..f226777e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12,8 +12,8 @@ dependencies = [ ] [[package]] -name = "ascon-hash" -version = "0.3.0-pre" +name = "ascon-hash256" +version = "0.5.0-pre" dependencies = [ "ascon", "base16ct", diff --git a/Cargo.toml b/Cargo.toml index 14deae77c..2c7653ae8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [workspace] resolver = "3" members = [ - "ascon-hash", + "ascon-hash256", "bash-hash", "belt-hash", "blake2", diff --git a/README.md b/README.md index 27c4abbec..ef317c24a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Additionally all crates do not require the standard library (i.e. `no_std` capab | Algorithm | Crate | Crates.io | Documentation | MSRV | [Security] | |-----------|-------|:---------:|:-------------:|:----:|:----------:| -| [Ascon] hash | [`ascon‑hash`] | [![crates.io](https://img.shields.io/crates/v/ascon-hash.svg)](https://crates.io/crates/ascon-hash) | [![Documentation](https://docs.rs/ascon-hash/badge.svg)](https://docs.rs/ascon-hash) | 1.85 | :green_heart: | +| [Ascon] hash | [`ascon‑hash256`] | [![crates.io](https://img.shields.io/crates/v/ascon-hash256.svg)](https://crates.io/crates/ascon-hash256) | [![Documentation](https://docs.rs/ascon-hash256/badge.svg)](https://docs.rs/ascon-hash256) | 1.85 | :green_heart: | | [Bash] hash | [`bash‑hash`] | [![crates.io](https://img.shields.io/crates/v/bash-hash.svg)](https://crates.io/crates/bash-hash) | [![Documentation](https://docs.rs/bash-hash/badge.svg)](https://docs.rs/bash-hash) | 1.85 | :green_heart: | | [BelT] hash | [`belt‑hash`] | [![crates.io](https://img.shields.io/crates/v/belt-hash.svg)](https://crates.io/crates/belt-hash) | [![Documentation](https://docs.rs/belt-hash/badge.svg)](https://docs.rs/belt-hash) | 1.85 | :green_heart: | | [BLAKE2] | [`blake2`] | [![crates.io](https://img.shields.io/crates/v/blake2.svg)](https://crates.io/crates/blake2) | [![Documentation](https://docs.rs/blake2/badge.svg)](https://docs.rs/blake2) | 1.85 | :green_heart: | @@ -235,7 +235,7 @@ Unless you explicitly state otherwise, any contribution intentionally submitted [//]: # (crates) -[`ascon‑hash`]: ./ascon-hash +[`ascon‑hash`]: ./ascon-hash256 [`bash‑hash`]: ./bash-hash [`belt‑hash`]: ./belt-hash [`blake2`]: ./blake2 diff --git a/ascon-hash/CHANGELOG.md b/ascon-hash256/CHANGELOG.md similarity index 100% rename from ascon-hash/CHANGELOG.md rename to ascon-hash256/CHANGELOG.md diff --git a/ascon-hash/Cargo.toml b/ascon-hash256/Cargo.toml similarity index 89% rename from ascon-hash/Cargo.toml rename to ascon-hash256/Cargo.toml index 19c026107..7c5359721 100644 --- a/ascon-hash/Cargo.toml +++ b/ascon-hash256/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "ascon-hash" -version = "0.3.0-pre" +name = "ascon-hash256" +version = "0.5.0-pre" description = "Implementation of Ascon-Hash256 and Ascon-XOF256" authors = [ "Sebastian Ramacher ", @@ -10,7 +10,7 @@ license = "Apache-2.0 OR MIT" readme = "README.md" edition = "2024" rust-version = "1.85" -documentation = "https://docs.rs/ascon-hash" +documentation = "https://docs.rs/ascon-hash256" repository = "https://github.com/RustCrypto/hashes" keywords = ["hash", "ascon"] categories = ["cryptography", "no-std"] diff --git a/ascon-hash/LICENSE-APACHE b/ascon-hash256/LICENSE-APACHE similarity index 100% rename from ascon-hash/LICENSE-APACHE rename to ascon-hash256/LICENSE-APACHE diff --git a/ascon-hash/LICENSE-MIT b/ascon-hash256/LICENSE-MIT similarity index 100% rename from ascon-hash/LICENSE-MIT rename to ascon-hash256/LICENSE-MIT diff --git a/ascon-hash/README.md b/ascon-hash256/README.md similarity index 82% rename from ascon-hash/README.md rename to ascon-hash256/README.md index f30ed39f1..71cfbf9f5 100644 --- a/ascon-hash/README.md +++ b/ascon-hash256/README.md @@ -7,8 +7,8 @@ ![Rust Version][rustc-image] [![Project Chat][chat-image]][chat-link] -Pure Rust implementation of the lightweight cryptographic hash function -[AsconHash256][1] and the extendable output functions (XOF) AsconXOF256. +Pure Rust implementation of the lightweight cryptographic hash function [AsconHash256][1] and the +extendable output functions (XOF) AsconXOF256. ## Security Notes @@ -19,7 +19,7 @@ USE AT YOUR OWN RISK! ## Examples Fixed output size hashing: ```rust -use ascon_hash::{AsconHash256, Digest}; +use ascon_hash256::{AsconHash256, Digest}; use hex_literal::hex; let mut hasher = AsconHash256::new(); @@ -35,7 +35,7 @@ assert_eq!(hex_hash, "e909c2f6da9cb3028423265c8f23fc2d26bfc0f3db704683ef16b787a9 XOF hashing: ```rust -use ascon_hash::{AsconXof128, ExtendableOutput, Update, XofReader}; +use ascon_hash256::{AsconXof128, ExtendableOutput, Update, XofReader}; use hex_literal::hex; let mut xof = AsconXof128::default(); @@ -65,16 +65,16 @@ dual licensed as above, without any additional terms or conditions. [//]: # (badges) -[crate-image]: https://img.shields.io/crates/v/ascon-hash.svg -[crate-link]: https://crates.io/crates/ascon-hash -[docs-image]: https://docs.rs/ascon-hash/badge.svg -[docs-link]: https://docs.rs/ascon-hash/ +[crate-image]: https://img.shields.io/crates/v/ascon-hash256.svg +[crate-link]: https://crates.io/crates/ascon-hash256 +[docs-image]: https://docs.rs/ascon-hash256/badge.svg +[docs-link]: https://docs.rs/ascon-hash256/ +[build-image]: https://github.com/RustCrypto/hashes/actions/workflows/ascon-hash256.yml/badge.svg +[build-link]: https://github.com/RustCrypto/hashes/actions/workflows/ascon-hash256.yml [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/ascon-hash.yml/badge.svg?branch=master -[build-link]: https://github.com/RustCrypto/hashes/actions/workflows/ascon-hash.yml?query=branch:master [//]: # (general links) diff --git a/ascon-hash/src/lib.rs b/ascon-hash256/src/lib.rs similarity index 100% rename from ascon-hash/src/lib.rs rename to ascon-hash256/src/lib.rs diff --git a/ascon-hash/tests/data/asconhash.txt b/ascon-hash256/tests/data/asconhash.txt similarity index 100% rename from ascon-hash/tests/data/asconhash.txt rename to ascon-hash256/tests/data/asconhash.txt diff --git a/ascon-hash/tests/data/asconxof.txt b/ascon-hash256/tests/data/asconxof.txt similarity index 100% rename from ascon-hash/tests/data/asconxof.txt rename to ascon-hash256/tests/data/asconxof.txt diff --git a/ascon-hash/tests/kats_tests.rs b/ascon-hash256/tests/kats_tests.rs similarity index 96% rename from ascon-hash/tests/kats_tests.rs rename to ascon-hash256/tests/kats_tests.rs index f842d9971..8b49fb09b 100644 --- a/ascon-hash/tests/kats_tests.rs +++ b/ascon-hash256/tests/kats_tests.rs @@ -6,7 +6,7 @@ use std::include_str; use spectral::prelude::{OrderedAssertions, asserting}; -use ascon_hash::{AsconHash256, AsconXof128, Digest, ExtendableOutput, Reset, XofReader}; +use ascon_hash256::{AsconHash256, AsconXof128, Digest, ExtendableOutput, Reset, XofReader}; #[derive(Debug)] struct TestVector {