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.Format fileFormat
)
[VB.NET]
Public Shared Function SaveKey ( _
	outputFile As String, _
	internalKey As String, _
	keyType As Ecc.KeyType, _
	fileFormat As Ecc.Format _
) As Integer

Parameters

outputFile
Name of key file to be created
internalKey
the private or public EC key in an internal key string
keyType
Type: Ecc.KeyType
Key structure for private key (ignored for public)
fileFormat
Type: Ecc.Format
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: General.CompileTime Method...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.