Save an internal RSA key string to an encrypted key file.
Public Declare Function RSA_SaveEncKey Lib "diCrPKI.dll" (ByVal strFileOut As String, ByVal strIntKeyString As String, ByVal strPassword As String, ByVal strParams As String, ByVal nOptions As Long) As Long
nRet = RSA_SaveEncKey(strFileOut, strIntKeyString, strPassword, strParams, nOptions) As Long
long __stdcall RSA_SaveEncKey(const char *szFileOut, const char *szIntKeyString, const char *szPassword, const char *szParams, long nOptions);
"" for defaults.
Otherwise include a set of attribute-value pairs separated by a semi-colon ";" to set options from the following
count=<nnn> to set the iteration count in the encrypted private key used in the PBKDF method,
e.g. "count=5000;" [default=2048]
prf=<hmac-name> to change the HMAC algorithm used in the PBKDF2 method,
e.g. "prf=hmacWithSHA256;" [default=hmacwithSHA1]
{hmacWithSHA1|hmacWithSHA224|hmacWithSHA256|hmacWithSHA384|hmacWithSHA512}.
pbeWithSHAAnd3-KeyTripleDES-CBC from PKCS12 (default)des-EDE3-CBCaes128-CBCaes192-CBCaes256-CBCENCRYPTED PRIVATE KEY PEM-format file (default is binary BER-encoded format). If successful, the return value is zero; otherwise it returns a nonzero error code.
Public Function rsaSaveEncKey (szOutputFile As String, szKeyStr As String, szPassword As String, Optional szParams As String = "", Optional nOptions As Long = 0) As Long
static int dipki::Rsa::SaveEncKey (const std::string &outputFile, const std::string &keyStr, const std::string &password, PbeScheme pbes=PbeScheme::Default, const std::string ¶mString="", Format fileFormat=Format::Binary)
static Rsa.save_enc_key(outputfile, intkeystr, password, pbescheme=0, params='', fileformat=0)