CryptoSys PKI Pro Manual

Ecc.SaveKey Method

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

Syntax

[C#]
public static int SaveKey(
   string outputFile,
   string internalKey,
   Ecc.KeyType keyType = Ecc.KeyType.Default,
   Ecc.Format fileFormat = Ecc.Format.Default 
)
[VB]
Public Shared Function SaveKey (
   outputFile As String,
   internalKey As String,
   Optional keyType As Ecc.KeyType = Ecc.KeyType.Default,
   Optional fileFormat As Ecc.Format = Ecc.Format.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  Ecc.KeyType  (Optional)
Key structure options
fileFormat  Ecc.Format  (Optional)
Format to save file [default = DER binary]

Return Value

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

See Also

VB6/C equivalent: ECC_SaveKey

[Contents] [Index]

[PREV: Ecc.SaveEncKey Method...]   [Contents]   [Index]   
   [NEXT: Ecc.WriteKey Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-17T11:18:15Z.