C# Class Granados.SSH1.SSH1UserAuthKey

private key for user authentication
Exibir arquivo Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
SSH1UserAuthKey ( string path, string passphrase ) : Granados.Poderosa.KeyFormat

constructs from file

decryptChallenge ( BigInteger encryptedchallenge ) : BigInteger

Private Methods

Method Description
ConvertToKey ( string passphrase ) : byte[]
PrimeExponent ( BigInteger privateExponent, BigInteger prime ) : BigInteger
ReadAll ( Stream s ) : byte[]

Method Details

SSH1UserAuthKey() public method

constructs from file
public SSH1UserAuthKey ( string path, string passphrase ) : Granados.Poderosa.KeyFormat
path string file name
passphrase string passphrase or empty string if passphrase is not required
return Granados.Poderosa.KeyFormat

decryptChallenge() public method

public decryptChallenge ( BigInteger encryptedchallenge ) : BigInteger
encryptedchallenge Granados.Mono.Math.BigInteger
return Granados.Mono.Math.BigInteger