Function silc_load_key_pair
SYNOPSIS
bool silc_load_key_pair(const char *pub_filename,
const char *prv_filename,
const char *passphrase,
SilcPKCS *return_pkcs,
SilcPublicKey *return_public_key,
SilcPrivateKey *return_private_key);
DESCRIPTION
This routine can be used to load the public key and private key
from files. This retuns FALSE it either of the key could not be
loaded. This function returns TRUE on success and returns the
public key into `return_public_key' pointer, private key into
`return_private_key' pointer and the SilcPKCS object to the
`return_pkcs'. The SilcPKCS can be used to perform public key
cryptographic operations. The `passphrase' is the passphrase
which will be used to decrypt the private key file.
|