Initializing help system before first use

RSApubdecrypt

RSApubdecrypt


Purpose
Decrypt a document using an RSA public key.
Synopsis
function RSApubdecrypt(kfile:string, src:string, dest:string):integer
Arguments
kfile 
File containing the public key
src 
Name of the file to decrypt
dst 
Name of the file to store the decrypted document
Return value
Length of the resulting document or -1 in the case of an error.
Further information
1. This function is used to decrypt a document that has been encrypted using RSAprivencrypt. It requires the public part of the key used for encryption.
2. If the key file name does not include an explicit path ( e.g. "somekey"), it is searched for in the default public keys directory located at getparam("ssl_dir")+"/pubkeys" instead of the current working directory. It is required to prefix the key file name with "./" in order to access a key file from the current directory ( e.g. "./somekey").
Related topics
Module