Click or drag to resize

EccSaveKey Method

Save an internal EC key string (public or private) to an unencrypted key file.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int SaveKey(
	string outputFile,
	string internalKey,
	EccKeyType keyType = EccKeyType.Default,
	EccFormat fileFormat = EccFormat.Default
)

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

Int32
If successful, the return value is zero; otherwise it returns a nonzero error code
See Also