Skip to content

Conversation

@jeffspel-crypto
Copy link
Contributor

Issue

Link your PR to an issue

Fixes #254

Description

In order to add code to make the Lookup_Table store table entries in Montgomery form (Issue 253) we need Hacl code to support converting to/from Montgomery form. We also need the Hacl functions to perform multiply with modular reduction. The code in this PR comes from the gcc-compatible repo of the Hacl-star project. Changes have been made to the Hacl_GenericField64.c to lock it into 4096 bit big numbers in order to get it to compile in our environment.

Testing

No testing has been added. At this point no code will be using this code, however, this is low level code that will be used by any ballot encryption and will enventually be covered by lots of other tests.

Copy link
Contributor

@SteveMaier-IRT SteveMaier-IRT left a comment

Choose a reason for hiding this comment

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

looks good.

@SteveMaier-IRT SteveMaier-IRT requested review from SteveMaier-IRT and keithrfung and removed request for SteveMaier-IRT May 3, 2022 19:47
@SteveMaier-IRT SteveMaier-IRT requested a review from lprichar May 5, 2022 19:22
@SteveMaier-IRT SteveMaier-IRT merged commit 554df0c into Election-Tech-Initiative:main May 7, 2022
@jeffspel-crypto jeffspel-crypto deleted the lookup_table_mont branch May 7, 2022 17:33
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.

✨ Need Hacl code to perform conversions to/from Montgomery form

4 participants