Skip to content

rsa_load_privatekey()#


Load an encrypted RSA private key from a PKCS#8 file specified by privkey_file, and decrypt it using passphrase.

Syntax
rsa_load_privatekey( privkey_file, rsa var, passphrase )

Returns#

Returns 1 if compilation succeeds, 0 if error occurred.

Parameters#

Parameter Description
privkey_file The name of the file containing the encrypted private key (relative to the Miva data directory).
rsa A variable which receives an internal reference to the loaded RSA key.
passphrase The passphrase used to decrypt the private key.