Rename ascon-hash => ascon-hash256 (#767)

We no longer control the `ascon-hash` name.

This follows a similar rename we did for AEADs:
`ascon-aead` => `ascon-aead128`
This commit is contained in:
Tony Arcieri
2026-01-03 09:43:29 -07:00
committed by GitHub
parent 608445afa9
commit c0e71471c2
13 changed files with 23 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
name: ascon-hash name: ascon-hash256
on: on:
pull_request: pull_request:
@@ -11,7 +11,7 @@ on:
defaults: defaults:
run: run:
working-directory: ascon-hash working-directory: ascon-hash256
env: env:
RUSTFLAGS: "-Dwarnings" RUSTFLAGS: "-Dwarnings"
@@ -26,7 +26,7 @@ jobs:
set-msrv: set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with: with:
msrv: 1.85.0 msrv: 1.85.0
build: build:
needs: set-msrv needs: set-msrv
@@ -52,7 +52,7 @@ jobs:
minimal-versions: minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with: with:
working-directory: ${{ github.workflow }} working-directory: ${{ github.workflow }}
test: test:
needs: set-msrv needs: set-msrv

4
Cargo.lock generated
View File

@@ -12,8 +12,8 @@ dependencies = [
] ]
[[package]] [[package]]
name = "ascon-hash" name = "ascon-hash256"
version = "0.3.0-pre" version = "0.5.0-pre"
dependencies = [ dependencies = [
"ascon", "ascon",
"base16ct", "base16ct",

View File

@@ -1,7 +1,7 @@
[workspace] [workspace]
resolver = "3" resolver = "3"
members = [ members = [
"ascon-hash", "ascon-hash256",
"bash-hash", "bash-hash",
"belt-hash", "belt-hash",
"blake2", "blake2",

View File

@@ -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] | | Algorithm | Crate | Crates.io | Documentation | MSRV | [Security] |
|-----------|-------|:---------:|:-------------:|:----:|:----------:| |-----------|-------|:---------:|:-------------:|:----:|:----------:|
| [Ascon] hash | [`asconhash`] | [![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 | [`asconhash256`] | [![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 | [`bashhash`] | [![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: | | [Bash] hash | [`bashhash`] | [![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 | [`belthash`] | [![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: | | [BelT] hash | [`belthash`] | [![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: | | [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) [//]: # (crates)
[`asconhash`]: ./ascon-hash [`asconhash`]: ./ascon-hash256
[`bashhash`]: ./bash-hash [`bashhash`]: ./bash-hash
[`belthash`]: ./belt-hash [`belthash`]: ./belt-hash
[`blake2`]: ./blake2 [`blake2`]: ./blake2

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "ascon-hash" name = "ascon-hash256"
version = "0.3.0-pre" version = "0.5.0-pre"
description = "Implementation of Ascon-Hash256 and Ascon-XOF256" description = "Implementation of Ascon-Hash256 and Ascon-XOF256"
authors = [ authors = [
"Sebastian Ramacher <sebastian.ramacher@ait.ac.at>", "Sebastian Ramacher <sebastian.ramacher@ait.ac.at>",
@@ -10,7 +10,7 @@ license = "Apache-2.0 OR MIT"
readme = "README.md" readme = "README.md"
edition = "2024" edition = "2024"
rust-version = "1.85" rust-version = "1.85"
documentation = "https://docs.rs/ascon-hash" documentation = "https://docs.rs/ascon-hash256"
repository = "https://github.com/RustCrypto/hashes" repository = "https://github.com/RustCrypto/hashes"
keywords = ["hash", "ascon"] keywords = ["hash", "ascon"]
categories = ["cryptography", "no-std"] categories = ["cryptography", "no-std"]

View File

@@ -7,8 +7,8 @@
![Rust Version][rustc-image] ![Rust Version][rustc-image]
[![Project Chat][chat-image]][chat-link] [![Project Chat][chat-image]][chat-link]
Pure Rust implementation of the lightweight cryptographic hash function Pure Rust implementation of the lightweight cryptographic hash function [AsconHash256][1] and the
[AsconHash256][1] and the extendable output functions (XOF) AsconXOF256. extendable output functions (XOF) AsconXOF256.
## Security Notes ## Security Notes
@@ -19,7 +19,7 @@ USE AT YOUR OWN RISK!
## Examples ## Examples
Fixed output size hashing: Fixed output size hashing:
```rust ```rust
use ascon_hash::{AsconHash256, Digest}; use ascon_hash256::{AsconHash256, Digest};
use hex_literal::hex; use hex_literal::hex;
let mut hasher = AsconHash256::new(); let mut hasher = AsconHash256::new();
@@ -35,7 +35,7 @@ assert_eq!(hex_hash, "e909c2f6da9cb3028423265c8f23fc2d26bfc0f3db704683ef16b787a9
XOF hashing: XOF hashing:
```rust ```rust
use ascon_hash::{AsconXof128, ExtendableOutput, Update, XofReader}; use ascon_hash256::{AsconXof128, ExtendableOutput, Update, XofReader};
use hex_literal::hex; use hex_literal::hex;
let mut xof = AsconXof128::default(); let mut xof = AsconXof128::default();
@@ -65,16 +65,16 @@ dual licensed as above, without any additional terms or conditions.
[//]: # (badges) [//]: # (badges)
[crate-image]: https://img.shields.io/crates/v/ascon-hash.svg [crate-image]: https://img.shields.io/crates/v/ascon-hash256.svg
[crate-link]: https://crates.io/crates/ascon-hash [crate-link]: https://crates.io/crates/ascon-hash256
[docs-image]: https://docs.rs/ascon-hash/badge.svg [docs-image]: https://docs.rs/ascon-hash256/badge.svg
[docs-link]: https://docs.rs/ascon-hash/ [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 [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 [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-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260041-hashes [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) [//]: # (general links)

View File

@@ -6,7 +6,7 @@ use std::include_str;
use spectral::prelude::{OrderedAssertions, asserting}; 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)] #[derive(Debug)]
struct TestVector { struct TestVector {