C# 클래스 Granados.Poderosa.KeyFormat.PuTTYPrivateKeyLoader

PuTTY SSH2 private key loader
상속: ISSH2PrivateKeyLoader
파일 보기 프로젝트 열기: poderosaproject/poderosa 1 사용 예제들

공개 메소드들

메소드 설명
Load ( string passphrase, KeyPair &keyPair, string &comment ) : void

Read PuTTY SSH2 private key parameters.

PuTTYPrivateKeyLoader ( byte keyFile, string keyFilePath ) : System

Constructor

비공개 메소드들

메소드 설명
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

메소드 상세

Load() 공개 메소드

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
리턴 void

PuTTYPrivateKeyLoader() 공개 메소드

Constructor
public PuTTYPrivateKeyLoader ( byte keyFile, string keyFilePath ) : System
keyFile byte key file data
keyFilePath string Path of a key file
리턴 System