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

Enable subgroup checks for G1 and G2 via verifyOrder #29

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rheitjoh
Copy link
Member

@rheitjoh rheitjoh commented Aug 18, 2021

Addresses #28 by adding verifyOrderG1 and verifyOrderG2 to the FFI and enabling them after Mcl initialization. This means that subgroup checks are automatically done when using the setStr method which we use for deserialization.

Is missing checks for GT since Mcl has no verifyOrder method for that.

@rheitjoh rheitjoh linked an issue Aug 18, 2021 that may be closed by this pull request
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
mcl_version="v1.28"
#mcl_version="v1.28"
mcl_version="5faedff92a72a685d4e6c94e1974ec2033b9d352"
Copy link
Member

Choose a reason for hiding this comment

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

Is this on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

waiting for mcl version v1.52

@Test
public void testOnCurve() {
MclBilinearGroupImpl bilGroupImpl = new MclBilinearGroupImpl();
MclGroup2Impl groupG2Impl = bilGroupImpl.getG2();
Copy link
Member

Choose a reason for hiding this comment

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

Did you test G1, too?

Copy link
Member

@JanBobolz JanBobolz Aug 19, 2021

Choose a reason for hiding this comment

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

on curve check works anyway (cannot be disabled) 👍

@JanBobolz
Copy link
Member

Needs

herumi/mcl#126

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.

Subgroup checks
2 participants