ZenGo-X / class

Rust library for building IQC: cryptography based on class groups of imaginary quadratic orders
GNU General Public License v3.0
63 stars 31 forks source link

add input check for GEN #11

Open omershlo opened 5 years ago

omershlo commented 5 years ago

All functions that accept inputs from pari must have assertion at the beginning to validate the specific type that GEN (which is a general pointer) points to. for example: https://github.com/KZen-networks/class-groups/blob/master/src/lib.rs#L258 need to add verification that the input is indeed quadratic form.