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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ascon-hash
name: ascon-hash256

on:
pull_request:
Expand All @@ -11,7 +11,7 @@ on:

defaults:
run:
working-directory: ascon-hash
working-directory: ascon-hash256

env:
RUSTFLAGS: "-Dwarnings"
Expand All @@ -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
Expand All @@ -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
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
@@ -1,7 +1,7 @@
[workspace]
resolver = "3"
members = [
"ascon-hash",
"ascon-hash256",
"bash-hash",
"belt-hash",
"blake2",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions ascon-hash/Cargo.toml → ascon-hash256/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ascon-hash"
version = "0.3.0-pre"
name = "ascon-hash256"
version = "0.5.0-pre"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: picked to match ascon v0.5

description = "Implementation of Ascon-Hash256 and Ascon-XOF256"
authors = [
"Sebastian Ramacher <sebastian.ramacher@ait.ac.at>",
Expand All @@ -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"]
Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 10 additions & 10 deletions ascon-hash/README.md → ascon-hash256/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading