C# Class Granados.Poderosa.KeyFormat.PrivateKeyLoader

Afficher le fichier Open project: poderosaproject/poderosa Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

LoadSSH2PrivateKey() public méthode

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

PrivateKeyLoader() public méthode

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

ProbeFormat() public méthode

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