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

crypto/cloudflare/bn256: fix in-place addition and unmarshalling #23419

Merged
merged 1 commit into from Aug 25, 2021

Conversation

gballet
Copy link
Member

@gballet gballet commented Aug 19, 2021

Fixes #23346

There were two upstream fixes required: one is for in-place addition and the second one was for in-place unmarshalling

}
m := p.Add(p, p).Marshal()
if _, err := p.Unmarshal(m); err != nil {
t.Fatalf("p.Add(p, p) ∉ G₂: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

That error message is a bit crazy imo

Copy link
Member

@MariusVanDerWijden MariusVanDerWijden left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman
Copy link
Contributor

holiman commented Aug 25, 2021

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman
Copy link
Contributor

holiman commented Aug 25, 2021

@gballet for some reason I can't find this PR in the travis build history, can you maybe rebase it to trigger travis again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bn256.G2 points fail on in-place addition
3 participants