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:
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

4
Cargo.lock generated
View File

@@ -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",

View File

@@ -1,7 +1,7 @@
[workspace]
resolver = "3"
members = [
"ascon-hash",
"ascon-hash256",
"bash-hash",
"belt-hash",
"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] |
|-----------|-------|:---------:|:-------------:|:----:|:----------:|
| [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: |
| [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: |
@@ -235,7 +235,7 @@ Unless you explicitly state otherwise, any contribution intentionally submitted
[//]: # (crates)
[`asconhash`]: ./ascon-hash
[`asconhash`]: ./ascon-hash256
[`bashhash`]: ./bash-hash
[`belthash`]: ./belt-hash
[`blake2`]: ./blake2

View File

@@ -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 <sebastian.ramacher@ait.ac.at>",
@@ -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"]

View File

@@ -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)

View File

@@ -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 {