C# Class Renci.SshNet.Common.DerData

Base class for DER encoded data.
Afficher le fichier Open project: sshnet/SSH.NET Class Usage Examples

Méthodes publiques

Méthode Description
DerData ( ) : System

Initializes a new instance of the DerData class.

DerData ( byte data ) : System

Initializes a new instance of the DerData class.

Encode ( ) : byte[]

Encodes written data as DER byte array.

ReadBigInteger ( ) : BigInteger

Reads next mpint data type from internal buffer.

ReadInteger ( ) : int

Reads next int data type from internal buffer.

Write ( BigInteger data ) : void

Writes INTEGER data into internal buffer.

Write ( DerData data ) : void

Writes DerData data into internal buffer.

Write ( ObjectIdentifier identifier ) : void

Writes OBJECTIDENTIFIER data into internal buffer.

Write ( bool data ) : void

Writes BOOLEAN data into internal buffer.

Write ( byte data ) : void

Writes OCTETSTRING data into internal buffer.

Write ( uint data ) : void

Writes UInt32 data into internal buffer.

WriteNull ( ) : void

Writes NULL data into internal buffer.

Private Methods

Méthode Description
GetLength ( int length ) : IEnumerable
ReadByte ( ) : byte
ReadBytes ( int length ) : byte[]
ReadLength ( ) : int
WriteBytes ( IEnumerable data ) : void

Method Details

DerData() public méthode

Initializes a new instance of the DerData class.
public DerData ( ) : System
Résultat System

DerData() public méthode

Initializes a new instance of the DerData class.
public DerData ( byte data ) : System
data byte DER encoded data.
Résultat System

Encode() public méthode

Encodes written data as DER byte array.
public Encode ( ) : byte[]
Résultat byte[]

ReadBigInteger() public méthode

Reads next mpint data type from internal buffer.
public ReadBigInteger ( ) : BigInteger
Résultat BigInteger

ReadInteger() public méthode

Reads next int data type from internal buffer.
public ReadInteger ( ) : int
Résultat int

Write() public méthode

Writes INTEGER data into internal buffer.
public Write ( BigInteger data ) : void
data BigInteger BigInteger data to write.
Résultat void

Write() public méthode

Writes DerData data into internal buffer.
public Write ( DerData data ) : void
data DerData DerData data to write.
Résultat void

Write() public méthode

Writes OBJECTIDENTIFIER data into internal buffer.
public Write ( ObjectIdentifier identifier ) : void
identifier ObjectIdentifier The identifier.
Résultat void

Write() public méthode

Writes BOOLEAN data into internal buffer.
public Write ( bool data ) : void
data bool UInt32 data to write.
Résultat void

Write() public méthode

Writes OCTETSTRING data into internal buffer.
public Write ( byte data ) : void
data byte The data.
Résultat void

Write() public méthode

Writes UInt32 data into internal buffer.
public Write ( uint data ) : void
data uint UInt32 data to write.
Résultat void

WriteNull() public méthode

Writes NULL data into internal buffer.
public WriteNull ( ) : void
Résultat void