Skip to content

Conversation

@jeffspel-crypto
Copy link
Contributor

Issue

Link your PR to an issue

Fixes #270

Description

This a change to the a_plus_bc_mod_q function. The function was using 4096 bit math functions from the HACL package but it is only working on 256 bit numbers. The change is to use the 256 bit math functions from the HACL package. This function is used twice for each Chaum Pedersen proof so speeding this up, will likelly make a difference to overall performance.

Testing

This code is low level code that is used many times during a ballot encryption so no additional testing was added. A benchmark for this function was added however.

@SteveMaier-IRT SteveMaier-IRT self-requested a review May 7, 2022 06:35
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 merged commit d894a96 into Election-Tech-Initiative:main May 8, 2022
@jeffspel-crypto jeffspel-crypto deleted the a_plus_bc_mod_q_redo branch May 8, 2022 23:29
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.

✨ Optimize the chaum pedersen proof creation code

3 participants