C# Класс Renci.SshNet.Common.DerData

Base class for DER encoded data.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetLength ( int length ) : IEnumerable
ReadByte ( ) : byte
ReadBytes ( int length ) : byte[]
ReadLength ( ) : int
WriteBytes ( IEnumerable data ) : void

Описание методов

DerData() публичный метод

Initializes a new instance of the DerData class.
public DerData ( ) : System
Результат System

DerData() публичный метод

Initializes a new instance of the DerData class.
public DerData ( byte data ) : System
data byte DER encoded data.
Результат System

Encode() публичный метод

Encodes written data as DER byte array.
public Encode ( ) : byte[]
Результат byte[]

ReadBigInteger() публичный метод

Reads next mpint data type from internal buffer.
public ReadBigInteger ( ) : BigInteger
Результат BigInteger

ReadInteger() публичный метод

Reads next int data type from internal buffer.
public ReadInteger ( ) : int
Результат int

Write() публичный метод

Writes INTEGER data into internal buffer.
public Write ( BigInteger data ) : void
data BigInteger BigInteger data to write.
Результат void

Write() публичный метод

Writes DerData data into internal buffer.
public Write ( DerData data ) : void
data DerData DerData data to write.
Результат void

Write() публичный метод

Writes OBJECTIDENTIFIER data into internal buffer.
public Write ( ObjectIdentifier identifier ) : void
identifier ObjectIdentifier The identifier.
Результат void

Write() публичный метод

Writes BOOLEAN data into internal buffer.
public Write ( bool data ) : void
data bool UInt32 data to write.
Результат void

Write() публичный метод

Writes OCTETSTRING data into internal buffer.
public Write ( byte data ) : void
data byte The data.
Результат void

Write() публичный метод

Writes UInt32 data into internal buffer.
public Write ( uint data ) : void
data uint UInt32 data to write.
Результат void

WriteNull() публичный метод

Writes NULL data into internal buffer.
public WriteNull ( ) : void
Результат void