depressed-pho/HsOpenSSL

RSA decryption

timbod7 opened this issue · 1 comments

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.

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.