C# Class Renci.SshNet.Common.DerData

Base class for DER encoded data.
ファイルを表示 Open project: sshnet/SSH.NET Class Usage Examples

Public Methods

Method 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

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

Method Details

DerData() public method

Initializes a new instance of the DerData class.
public DerData ( ) : System
return System

DerData() public method

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

Encode() public method

Encodes written data as DER byte array.
public Encode ( ) : byte[]
return byte[]

ReadBigInteger() public method

Reads next mpint data type from internal buffer.
public ReadBigInteger ( ) : BigInteger
return BigInteger

ReadInteger() public method

Reads next int data type from internal buffer.
public ReadInteger ( ) : int
return int

Write() public method

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

Write() public method

Writes DerData data into internal buffer.
public Write ( DerData data ) : void
data DerData DerData data to write.
return void

Write() public method

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

Write() public method

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

Write() public method

Writes OCTETSTRING data into internal buffer.
public Write ( byte data ) : void
data byte The data.
return void

Write() public method

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

WriteNull() public method

Writes NULL data into internal buffer.
public WriteNull ( ) : void
return void