Save an internal EC key string (public or private) to an unencrypted key file.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int SaveKey(
string outputFile,
string internalKey,
EccKeyType keyType = EccKeyType.Default,
EccFormat fileFormat = EccFormat.Default
)
Public Shared Function SaveKey (
outputFile As String,
internalKey As String,
Optional keyType As EccKeyType = EccKeyType.Default,
Optional fileFormat As EccFormat = EccFormat.Default
) As Integer
Parameters
- outputFile String
- Name of key file to be created
- internalKey String
- the private or public EC key in an internal key string
- keyType EccKeyType (Optional)
- Key structure for private key (ignored for public)
- fileFormat EccFormat (Optional)
- Format to save file [default = DER binary]
Return Value
Int32If successful, the return value is zero; otherwise it returns a nonzero
error code
See Also