C# Class Granados.Poderosa.KeyFormat.PuTTYPrivateKeyLoader

PuTTY SSH2 private key loader
Inheritance: ISSH2PrivateKeyLoader
Afficher le fichier Open project: poderosaproject/poderosa Class Usage Examples

Méthodes publiques

Méthode Description
Load ( string passphrase, KeyPair &keyPair, string &comment ) : void

Read PuTTY SSH2 private key parameters.

PuTTYPrivateKeyLoader ( byte keyFile, string keyFilePath ) : System

Constructor

Private Methods

Méthode Description
BinToHex ( byte data ) : string
GetStreamReader ( ) : StreamReader
GetValueOf ( string line ) : string
PuTTYPassphraseToKey ( string passphrase ) : byte[]
ReadBlob ( StreamReader sreader, int lines, byte &blob ) : void
ReadHeaderLine ( StreamReader sreader, int &version, string &keyTypeName ) : void
ReadItemLine ( StreamReader sreader, string itemName, string &itemValue ) : void
ReadPrivateMACLine ( StreamReader sreader, int version, string &privateMac, string &privateHash ) : void
Verify ( int version, string privateMac, string privateHash, string passphrase, string keyTypeName, string encryptionName, string comment, byte publicBlob, byte privateBlob ) : bool
WriteMacData ( MemoryStream mem, byte data ) : void
WriteMacData ( MemoryStream mem, string s ) : void

Method Details

Load() public méthode

Read PuTTY SSH2 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
Résultat void

PuTTYPrivateKeyLoader() public méthode

Constructor
public PuTTYPrivateKeyLoader ( byte keyFile, string keyFilePath ) : System
keyFile byte key file data
keyFilePath string Path of a key file
Résultat System