Skip to content

ascon: refactor implementation#122

Merged
newpavlov merged 7 commits intomasterfrom
ascon/refactor
Apr 20, 2026
Merged

ascon: refactor implementation#122
newpavlov merged 7 commits intomasterfrom
ascon/refactor

Conversation

@newpavlov
Copy link
Copy Markdown
Member

Simplifies the code and focuses it only on permutations.

Comment thread ascon/src/lib.rs
/// Apply Ascon permutation with the given number of rounds.
///
/// Results in a compilation error if `ROUNDS` is greater than 12.
pub const fn permute<const ROUNDS: usize>(state: &mut State) {
Copy link
Copy Markdown
Member Author

@newpavlov newpavlov Apr 20, 2026

Choose a reason for hiding this comment

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

Note that marking it as const fn means that we will not be able to add target-feature dependent backends.

I think it's fine, since we do not have such plans at the moment and such addition is likely to involve addition of a keccak::Keccak-like structure, so it has to be done in a new breaking release either way.

@newpavlov newpavlov merged commit e2ac1d1 into master Apr 20, 2026
38 checks passed
@newpavlov newpavlov deleted the ascon/refactor branch April 20, 2026 14:41
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