depressed-pho / HsOpenSSL

OpenSSL binding for Haskell
http://hackage.haskell.org/package/HsOpenSSL
Creative Commons Zero v1.0 Universal
20 stars 56 forks source link

RSA decryption #51

Open timbod7 opened 8 years ago

timbod7 commented 8 years ago

I can successfully decrypt some rsa encrypted data with

openssl rsautl -inkey key.pem -decrypt

Does the library have functionality equivalent to this? I suspect that the OpenSSL C function RSA_private_decrypt needs to be called, and a scan of the source for the library doesn't show this as a foreign import.

vshabanov commented 8 years ago

I'm new maintainer of HsOpenSSL. Please reopen this issue in the new repo https://github.com/vshabanov/HsOpenSSL It would be great if you could provide a pull request with this functionality.