nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
106.51k stars 29.02k forks source link

Add built-in support for ElGamal encryption #6785

Closed kripod closed 8 years ago

kripod commented 8 years ago

ElGamal is one of the available partial, but performant homomorphic encryption mechanisms. I started to write a separate library for it, but thought that the functionality I wish to provide could be fit into the official crypto API of Node.

Most of the implementation could be inherited from the available Diffie-Hellman methods, especially, key generation.

addaleax commented 8 years ago

I think node’s crypto module is pretty much going to stick with offering what OpenSSL has, but @nodejs/crypto folks can probably give better answers than I can.

indutny commented 8 years ago

I agree with @addaleax on this. Unfortunately, this is not provided as an API primitive for OpenSSL, so there is no reason for us to expose it as a part of the core. Nevertheless, this could be implemented as a user-land C++ addon.