Reads from an encrypted PKCS#8 private key info file into an "internal" private key string.
[Superseded by RSA_ReadAnyPrivateKey
.]
Public Declare Function RSA_ReadEncPrivateKey Lib "diCrPKI.dll"
(ByVal strPrivateKey As String, ByVal nOutChars As Long, ByVal strEpkFileName As String,
ByVal strPassword As String, ByVal nOptions As Long) As Long
nRet = RSA_ReadEncPrivateKey(strPrivateKey, nOutChars,
strEpkFileName, strPassword, nOptions) As Long
long __stdcall RSA_ReadEncPrivateKey(char *szOutput, long nOutChars, const char *szEpkFile, const char *szPassword, long nOptions);
If successful, the return value is the number of characters in or required for the output string; otherwise it returns a negative error code.
Only PKCS-8 EncryptedPrivateKeyInfo
data
using the rsaEncryption
algorithm is supported.
The file must be either in binary BER-encoded format or PEM format.
RSA_SaveEncPrivateKey RSA_ReadPrivateKeyInfo RSA_SavePrivateKeyInfo RSA_GetPrivateKeyFromPFX