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

cast6: initial crate #384

Merged
merged 2 commits into from
Nov 19, 2023
Merged

cast6: initial crate #384

merged 2 commits into from
Nov 19, 2023

Conversation

LegionMammal978
Copy link
Contributor

This crate is mostly a copy-paste of the cast5 code. Apart from everything being larger in size, there are a couple main differences: forward_quad() and backward_quad() replace the direct fX!() calls, and Cast6::key_schedule() is implemented more regularly in terms of forward_octave(). The TM and TR arrays were generated from the algorithm in the RFC; since it only takes a bunch of wrapping additions, it might be worthwhile to construct one or both arrays with a const function, or even to compute each element at runtime.

@tarcieri
Copy link
Member

Going to merge this in the interest of getting it in before we do a cipher upgrade across the whole repo.

@newpavlov can you grant crate publishing access to the block ciphers team?

@tarcieri tarcieri merged commit fba88b7 into RustCrypto:master Nov 19, 2023
138 checks passed
@newpavlov
Copy link
Member

@tarcieri Done.

@newpavlov newpavlov mentioned this pull request Nov 22, 2023
19 tasks
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.

3 participants