C# Class dlech.SshAgentLib.BlobParser

used to parse open-ssh blobs
Afficher le fichier Open project: dlech/SshAgentLib Class Usage Examples

Méthodes publiques

Méthode Description
BlobParser ( Stream stream ) : System
BlobParser ( byte blob ) : System
ReadBits ( UInt32 bitCount ) : byte[]
ReadBlob ( ) : byte[]
ReadByte ( ) : byte
ReadBytes ( UInt32 blobLength ) : byte[]
ReadHeader ( ) : Agent.BlobHeader
ReadInt ( ) : UInt32
ReadShort ( ) : UInt16
ReadSsh1BigIntBlob ( ) : byte[]
ReadSsh1KeyData ( AsymmetricKeyParameter publicKeyParameter ) : AsymmetricCipherKeyPair

reads private key portion of OpenSSH ssh1 formatted key blob from stream and creates a key pair

intended to be called immediately after ParseSsh1PublicKeyData

ReadSsh1PublicKeyData ( bool reverseRsaParameters = false ) : AsymmetricKeyParameter

reads ssh1 OpenSSH formatted public key blob from stream and creates an AsymmetricKeyParameter object

ReadSsh2KeyData ( AsymmetricKeyParameter publicKeyParameter ) : AsymmetricCipherKeyPair

reads private key portion of OpenSSH formatted key blob from stream and creates a key pair

intended to be called immediately after ParseSsh2PublicKeyData

ReadSsh2PublicKeyData ( ) : AsymmetricKeyParameter

reads OpenSSH formatted public key blob and creates an AsymmetricKeyParameter object

ReadString ( ) : string

Method Details

BlobParser() public méthode

public BlobParser ( Stream stream ) : System
stream Stream
Résultat System

BlobParser() public méthode

public BlobParser ( byte blob ) : System
blob byte
Résultat System

ReadBits() public méthode

public ReadBits ( UInt32 bitCount ) : byte[]
bitCount System.UInt32
Résultat byte[]

ReadBlob() public méthode

public ReadBlob ( ) : byte[]
Résultat byte[]

ReadByte() public méthode

public ReadByte ( ) : byte
Résultat byte

ReadBytes() public méthode

public ReadBytes ( UInt32 blobLength ) : byte[]
blobLength System.UInt32
Résultat byte[]

ReadHeader() public méthode

public ReadHeader ( ) : Agent.BlobHeader
Résultat Agent.BlobHeader

ReadInt() public méthode

public ReadInt ( ) : UInt32
Résultat System.UInt32

ReadShort() public méthode

public ReadShort ( ) : UInt16
Résultat System.UInt16

ReadSsh1BigIntBlob() public méthode

public ReadSsh1BigIntBlob ( ) : byte[]
Résultat byte[]

ReadSsh1KeyData() public méthode

reads private key portion of OpenSSH ssh1 formatted key blob from stream and creates a key pair
intended to be called immediately after ParseSsh1PublicKeyData
public ReadSsh1KeyData ( AsymmetricKeyParameter publicKeyParameter ) : AsymmetricCipherKeyPair
publicKeyParameter Org.BouncyCastle.Crypto.AsymmetricKeyParameter
Résultat Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair

ReadSsh1PublicKeyData() public méthode

reads ssh1 OpenSSH formatted public key blob from stream and creates an AsymmetricKeyParameter object
public ReadSsh1PublicKeyData ( bool reverseRsaParameters = false ) : AsymmetricKeyParameter
reverseRsaParameters bool /// Set to true to read RSA modulus first. Normally exponent is read first. ///
Résultat Org.BouncyCastle.Crypto.AsymmetricKeyParameter

ReadSsh2KeyData() public méthode

reads private key portion of OpenSSH formatted key blob from stream and creates a key pair
intended to be called immediately after ParseSsh2PublicKeyData
public ReadSsh2KeyData ( AsymmetricKeyParameter publicKeyParameter ) : AsymmetricCipherKeyPair
publicKeyParameter Org.BouncyCastle.Crypto.AsymmetricKeyParameter
Résultat Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair

ReadSsh2PublicKeyData() public méthode

reads OpenSSH formatted public key blob and creates an AsymmetricKeyParameter object
public ReadSsh2PublicKeyData ( ) : AsymmetricKeyParameter
Résultat Org.BouncyCastle.Crypto.AsymmetricKeyParameter

ReadString() public méthode

public ReadString ( ) : string
Résultat string