Skip to content

Switch over to using u64s in the state array#8

Merged
TomAFrench merged 17 commits intomasterfrom
u64-refactor
Dec 7, 2022
Merged

Switch over to using u64s in the state array#8
TomAFrench merged 17 commits intomasterfrom
u64-refactor

Conversation

@TomAFrench
Copy link
Owner

This is a pretty quick and dirty attempt at this refactoring which ends up simplifying a lot of the code (except the padding function).

In the process I noticed that we had the chi function implemented incorrectly so have fixed this.

Something I need to check more is that I'm correctly handling the endianness of the lanes correctly. It's going to be easier to rotate something in the wrong direction now.

@TomAFrench
Copy link
Owner Author

Note this only currently builds when building from noir-lang/noir#437 otherwise the pseudo bitshifting in the pad function causes a stack overflow.

@TomAFrench TomAFrench marked this pull request as ready for review December 7, 2022 18:19
@TomAFrench TomAFrench merged commit 7fac96a into master Dec 7, 2022
@TomAFrench TomAFrench deleted the u64-refactor branch December 7, 2022 18:20
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