Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kuznyechik: use const eval to generate tables #451

Merged
merged 7 commits into from
Sep 26, 2024

Conversation

newpavlov
Copy link
Member

@newpavlov newpavlov commented Sep 26, 2024

This PR significantly reduces size of the crate. But now clean build of the crate takes 7-12 seconds, which is not great, but tolerable enough. Hopefully, performance of const eval will be improved in future.

We could improve build times by using a build script and include_bytes!, but it would result in a somewhat less clear code and it would mean introduction of the first algorithmic crate which uses build script.

Additionally, this PR adds a chain encryption test for a more thorough testing.

Closes #448

@newpavlov newpavlov merged commit 6b7ce12 into master Sep 26, 2024
11 checks passed
@newpavlov newpavlov deleted the kuznyechik/tables_comp branch September 26, 2024 15:26
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.

kuznyechik: use const fn to compute the fused tables
1 participant