KCML_RSA_Decrypt
Purpose
Decrypt a string using an RSA private key
Definition
DEFSUB 'KCML_RSA_Decrypt(BYREF RSAPrivateKey$, BYREF cyphertext$, BYREF plaintext$, BYREF error$) AS Bool
Parameters
| RSAPrivateKey | String containing PEM encoded RSA private key |
| cyphertext | Encrypted string |
| plaintext | Decrypted result string. This will be REDIMed to the size of the decrypted string |
| error | If the function fails then this parameter is REDIMmed to return an error string |
Return
TRUE if the function succeeds. FALSE if the function fails, and error$ will contain an error string.
Description
See the complementary function 'KCML_RSA_Encrypt() for more information. This process currently relies on the OpenSSL libraries.
See also
Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.