Skip to content

[clean] endomorphism + code generation #281

Merged
gbotrel merged 1 commit intodevelopfrom
clean/GLV-template
Dec 13, 2022
Merged

[clean] endomorphism + code generation #281
gbotrel merged 1 commit intodevelopfrom
clean/GLV-template

Conversation

@yelhousni
Copy link
Copy Markdown
Collaborator

@yelhousni yelhousni commented Dec 13, 2022

fixed #60
When GLV is set to false (endomorphism not available) in the config file, the templates still generate code for some computations (ClearCofactorl(), IsInSubgroupl(), ScalarMul()) that use the endomorphism phi(). This PR fixes the problem.

When the GLV is set to false, the templates:

  • use mulWindowed() instead of mulGLV()
  • multiply by r for IsInSubGroup()
  • multiply by the cofactors for ClearCofactor() (for BW6 curves)

@gbotrel gbotrel merged commit 0142c0d into develop Dec 13, 2022
@gbotrel gbotrel deleted the clean/GLV-template branch December 13, 2022 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: cleanup Suggestion to clean up the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants