[det]rsa_private_decrypt(+PrivateKey,
+CipherText, -PlainText, +Options)Options:
- encoding(+Encoding)
- Encoding to use for Data. Default is
utf8. Alternatives areutf8andoctet. - padding(+PaddingScheme)
- Padding scheme to use. Default is
pkcs1. Alternatives arepkcs1_oaep,sslv23andnone. Note thatnoneshould only be used if you implement cryptographically sound padding modes in your application code as encrypting unpadded data with RSA is insecure
- Errors
ssl_error(Code, LibName, FuncName, Reason)is raised if there is an error, e.g., if the text is too long for the key.- See also
- load_private_key/3, load_public_key/2 can be use to load keys from a file. The predicate load_certificate/2 can be used to obtain the public key from a certificate.