CryptoSys PKI Toolkit Manual

Rsa.ReadPublicKey Method

Reads public key file into internal string format

Syntax

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

Parameters

keyFile
filename of BER-encoded public key data

Return Value

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

Remarks

To mirror ReadPrivateKey, this returns a StringBuilder, not a string, so it can be properly wiped later. Use Rsa.ReadPublicKey(file).ToString() to obtain a string.

See Also

VB6/C equivalent: RSA_ReadPublicKey

[Contents] [Index]

[HOME]   [NEXT: Rsa.SaveEncPrivateKey Method (String, String, Int32, String, CipherAlgorithm, HashAlgorithm, Rsa.Format)...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.