C# Class Granados.Poderosa.KeyFormat.OpenSSHPKCSFileLoader

OpenSSH PEM/PKCS file loader
Show file Open project: poderosaproject/poderosa

Public Methods

Method Description
Load ( string passphrase, KeyPair &keyPair, string &comment ) : void

Read private key parameters.

OpenSSHPKCSFileLoader ( byte image ) : System

Private Methods

Method Description
GetStreamReader ( ) : StreamReader
HexToByteArray ( string text ) : byte[]
PassphraseToKey ( string passphrase, byte iv, int length ) : byte[]

Method Details

Load() public method

Read private key parameters.
public Load ( string passphrase, KeyPair &keyPair, string &comment ) : void
passphrase string passphrase for decrypt the key file
keyPair Granados.PKI.KeyPair key pair
comment string comment or empty if it didn't exist
return void

OpenSSHPKCSFileLoader() public method

public OpenSSHPKCSFileLoader ( byte image ) : System
image byte
return System