C# Class Granados.Poderosa.KeyFormat.PrivateKeyLoader

Mostrar archivo Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
LoadSSH1PrivateKey ( string passphrase, BigInteger &modulus, BigInteger &publicExponent, BigInteger &privateExponent, BigInteger &primeP, BigInteger &primeQ, BigInteger &crtCoefficient, string &comment ) : void

Read SSH1 private key parameters.

LoadSSH2PrivateKey ( string passphrase, KeyPair &keyPair, string &comment ) : void

Read SSH2 private key parameters.

PrivateKeyLoader ( string path ) : System

Constructor

ProbeFormat ( ) : PrivateKeyFileFormat

Detect file format of a SSH private key file.

Method Details

LoadSSH1PrivateKey() public method

Read SSH1 private key parameters.
failed to parse
public LoadSSH1PrivateKey ( string passphrase, BigInteger &modulus, BigInteger &publicExponent, BigInteger &privateExponent, BigInteger &primeP, BigInteger &primeQ, BigInteger &crtCoefficient, string &comment ) : void
passphrase string passphrase for decrypt the key file
modulus BigInteger private key parameter is set
publicExponent BigInteger private key parameter is set
privateExponent BigInteger private key parameter is set
primeP BigInteger private key parameter is set
primeQ BigInteger private key parameter is set
crtCoefficient BigInteger private key parameter is set
comment string comment
return void

LoadSSH2PrivateKey() public method

Read SSH2 private key parameters.
failed to parse
public LoadSSH2PrivateKey ( string passphrase, KeyPair &keyPair, string &comment ) : void
passphrase string passphrase for decrypt the key file
keyPair Granados.PKI.KeyPair key pair is set
comment string comment is set. empty if it didn't exist
return void

PrivateKeyLoader() public method

Constructor
failed to read the key file
public PrivateKeyLoader ( string path ) : System
path string Path of a key file to load
return System

ProbeFormat() public method

Detect file format of a SSH private key file.
File I/O error
public ProbeFormat ( ) : PrivateKeyFileFormat
return PrivateKeyFileFormat