LoadKey
Sub LoadKey ( Filename As String [, Password As String] ) As Variant |
The LoadKey function loads public or private keys from a file into memory. The
file path can be an absolute or relative path or a network drive. When the password value
is given the file is supposed to hold a private key. You cannot load the public key with
a password and cannot load the private key without one. If a key is successfully loaded
the return value is not equal to 0. If an error happens, the return value is 0 and the Error property of the ActiveCrypt component differs from ERR_OK.
Analyzing this property you can find the reason of the failure.
|