cryptimeleon / mclwrap

A wrapper to bring the mcl pairing library into cryptimeleon
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Enable subgroup checks for G1 and G2 via verifyOrder #29

Open rheitjoh opened 3 years ago

rheitjoh commented 3 years ago

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.

JanBobolz commented 3 years ago

Needs

https://github.com/herumi/mcl/pull/126