C# Class Granados.Poderosa.KeyFormat.OpenSSHFileLoader

OpenSSH proprietary format file loader
Show file Open project: poderosaproject/poderosa

Public Methods

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

Read private key parameters with OpenSSH format.

OpenSSHFileLoader ( byte image ) : System

Private Methods

Method Description
AreEqual ( byte a1, byte a2 ) : bool
CheckMagic ( Stream s ) : bool
GetStreamReader ( ) : StreamReader
ReadBytes ( Stream s ) : byte[]
ReadInt32 ( Stream s, int &val ) : bool
ReadKdfOptions ( byte options, byte &salt, uint &rounds ) : bool
ReadString ( Stream s ) : string
ReadUInt32 ( Stream s, uint &val ) : bool

Method Details

Load() public method

Read private key parameters with OpenSSH format.
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

OpenSSHFileLoader() public method

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