Created by potrace 1.16, written by Peter Selinger 2001-2019

Miva Developer Docs


Decrypts data previously encrypted using the public key portion of an RSA keypair.

Syntax
rsa_private_decrypt( rsa, encrypted, plaintext var )

The rsa parameter must have been previously initialized with one of the rsa_load_privatekey functions.

Returns#

Returns 1 on success, 0 on error.

Parameters#

Parameter Description
rsa The internal reference to the RSA private key used for decryption
encrypted The encrypted ciphertext, in raw binary format
plaintext A variable which receives the decrypted plaintext