mirror of
https://github.com/RustCrypto/hashes.git
synced 2026-01-25 04:18:20 +00:00
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:
@@ -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"
|
||||
4
Cargo.lock
generated
4
Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[workspace]
|
||||
resolver = "3"
|
||||
members = [
|
||||
"ascon-hash",
|
||||
"ascon-hash256",
|
||||
"bash-hash",
|
||||
"belt-hash",
|
||||
"blake2",
|
||||
|
||||
@@ -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`] | [](https://crates.io/crates/ascon-hash) | [](https://docs.rs/ascon-hash) | 1.85 | :green_heart: |
|
||||
| [Ascon] hash | [`ascon‑hash256`] | [](https://crates.io/crates/ascon-hash256) | [](https://docs.rs/ascon-hash256) | 1.85 | :green_heart: |
|
||||
| [Bash] hash | [`bash‑hash`] | [](https://crates.io/crates/bash-hash) | [](https://docs.rs/bash-hash) | 1.85 | :green_heart: |
|
||||
| [BelT] hash | [`belt‑hash`] | [](https://crates.io/crates/belt-hash) | [](https://docs.rs/belt-hash) | 1.85 | :green_heart: |
|
||||
| [BLAKE2] | [`blake2`] | [](https://crates.io/crates/blake2) | [](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
|
||||
|
||||
@@ -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"]
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
Reference in New Issue
Block a user