briansmith / ring

Safe, fast, small crypto using Rust
Other
3.74k stars 704 forks source link

Partially homomorphic encryption in scope? #561

Closed heronhaye closed 7 years ago

heronhaye commented 7 years ago

Are partially homomorphic encryption schemes like Paillier and Damgård-Jurik within the scope of Ring, or would a new crate be more appropriate?

burdges commented 7 years ago

I think ring is trying to provide a difficult to miss-use API, but homomorphic properties are inherently easy to miss-use. It's possible some higher level usage of Paillier or Damgård-Jurik might be in scope of course.

Also, ring provides a degree of algorithm agility, which you do not want as you move into stranger primitives. As an example, it'd be risky for some pairing library to provides algorithm agility over curves whose pairings had different types (I/II/III).

briansmith commented 7 years ago

@modalduality I think it should be done in another crate that has a maintainer really dedicated to homomorphic encryption.