CryptoSys PKI Toolkit Manual

Rsa.ReadPrivateKeyInfo Method

Reads from an (unencrypted) PKCS-8 private key info file into a private key string

Syntax

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

Parameters

prikeyinfoFile
Name of file

Return Value

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

Remarks

This returns a StringBuilder, not a string, so it can be properly wiped later.

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: RSA_ReadPrivateKeyInfo

[Contents] [Index]

[HOME]   [NEXT: Rsa.ReadPublicKey Method...]

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