CryptoSys PKI Pro Manual

Ecc.ReadPublicKey Method

Read from a file or string containing an EC public key into an "internal" public key string.

Syntax

[C#]
public static StringBuilder ReadPublicKey(
	string keyFileOrString
)
[VB.NET]
Public Shared Function ReadPublicKey ( _
	keyFileOrString As String _
) As StringBuilder

Parameters

keyFileOrString
Name of public key file or a PEM String containing the key

Return Value

StringBuilder containing an internal representation of the public key; or an empty StringBuilder if error

Remarks

This returns a StringBuilder, not a string. Use sb.ToString() to obtain a string.

See Also

VB6/C equivalent: ECC_ReadPublicKey

[Contents] [Index]

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

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-06T00:43:03Z.