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

RSAPrivateKeyString containing PEM encoded RSA private key
cyphertextEncrypted string
plaintextDecrypted result string. This will be REDIMed to the size of the decrypted string
errorIf 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.