Skip to content

fix: update ascon to 0.5 - #206

Merged
mmaker merged 2 commits into
mainfrom
fix/ascon-0.5
Aug 6, 2026
Merged

fix: update ascon to 0.5#206
mmaker merged 2 commits into
mainfrom
fix/ascon-0.5

Conversation

@mmaker

@mmaker mmaker commented Aug 6, 2026

Copy link
Copy Markdown
Member

ascon 0.5 removed the State struct's byte accessors (State::from(&[u8; 40]) and as_bytes); State is now a plain [u64; 5] and the permutation is exposed as free functions like permute12. The Ascon12 permutation now converts between bytes and words explicitly with u64::from_le_bytes/to_le_bytes, mirroring the KeccakF1600 module, and a known-answer test pins the little-endian state layout on any target. Supersedes #135 while preserving its little-endian byte-order handling, without the raw pointer copies.

@mmaker
mmaker merged commit 07c0716 into main Aug 6, 2026
17 checks passed
@mmaker
mmaker deleted the fix/ascon-0.5 branch August 6, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant