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

"Optimize" psi2 for fast cofactor multiplication. #37

Closed
wants to merge 1 commit into from

Conversation

mmaker
Copy link
Contributor

@mmaker mmaker commented Apr 11, 2020

I'm making a little pull request just to notify you, in case you wanted to align the code with the one in the RFC, and have a psi2 with less moving parts.

It's just that when we apply Frobenius twice in this quadratic extension, we're basically applying the identity, so we can skip computing Frobenius altogether.

x.frobenius().frobenius() computes x^(q^2) = x by Eulero-Fermat.
So, just stay with x.
@ebfull ebfull closed this Sep 8, 2020
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.

None yet

2 participants