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

Remove the hades-constants iterator and reduce the amount of constants to 335 #247

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

moCello
Copy link
Member

@moCello moCello commented Jan 25, 2024

Resolves #246

@moCello moCello force-pushed the mocello/246_constants branch 6 times, most recently from 3a47bab to d34c587 Compare January 26, 2024 14:04
@moCello moCello requested review from ZER0, xevisalle and ureeves January 30, 2024 11:20
Copy link
Member

@ureeves ureeves left a comment

Choose a reason for hiding this comment

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

LGTM

@moCello moCello force-pushed the mocello/246_constants branch from 56c7ccb to 86ea655 Compare January 31, 2024 12:36
- Decrease amount of statically loaded constants from 960 to 335
- Change the `const ROUND_CONSTANTS` to a 2-dim array
- Add compile time warning for constants generation
- Remove the hades constants iterator
- Rename `add_round_key` to `add_round_constants` to match the paper
- Rename internal constant `TOTAL_FULL_ROUNDS` to `FULL_ROUNDS`.

Resolves #246
@moCello moCello force-pushed the mocello/246_constants branch from 86ea655 to de34dd9 Compare January 31, 2024 12:48
@moCello moCello merged commit 4a9697e into master Jan 31, 2024
7 checks passed
@moCello moCello deleted the mocello/246_constants branch January 31, 2024 12:51
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.

Reduce hades constants from 960 to 335
3 participants