C# Класс dlech.SshAgentLib.BlobBuilder

used to build blobs that are used for storing and sending keys in open-ssh/PuTTY format
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddBigIntBlob ( BigInteger aBigInt ) : void

Adds BigInteger to builder prefixed with size

AddBlob ( byte blob ) : void

Adds byte[] to builder as sub-blob

AddByte ( byte aByte ) : void

Adds byte to the blob

AddBytes ( byte aBytes ) : void

Adds byte[] to the blob

AddInt ( UInt32 aInt ) : void
AddInt ( int aInt ) : void
AddSsh1BigIntBlob ( BigInteger aBigInt ) : void

Adds byte[] to builder as Ssh1 sub-blob

AddStringBlob ( string aString ) : void

Adds a string to the blob

BlobBuilder ( ) : System

Creates new instance of BlobBuilder

Clear ( ) : void

Writes 0 to all values, then clears list

GetBlob ( ) : byte[]

Gets the resulting blob from the blob builder.

GetBlobAsPinnedByteArray ( ) : PinnedArray
InsertHeader ( Agent aMessage ) : void

Prepends header

InsertHeader ( Agent aMessage, int aHeaderData ) : void

Prepends header

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

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

Adds BigInteger to builder prefixed with size
public AddBigIntBlob ( BigInteger aBigInt ) : void
aBigInt Org.BouncyCastle.Math.BigInteger
Результат void

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

Adds byte[] to builder as sub-blob
public AddBlob ( byte blob ) : void
blob byte
Результат void

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

Adds byte to the blob
public AddByte ( byte aByte ) : void
aByte byte
Результат void

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

Adds byte[] to the blob
public AddBytes ( byte aBytes ) : void
aBytes byte
Результат void

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

public AddInt ( UInt32 aInt ) : void
aInt System.UInt32
Результат void

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

public AddInt ( int aInt ) : void
aInt int
Результат void

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

Adds byte[] to builder as Ssh1 sub-blob
public AddSsh1BigIntBlob ( BigInteger aBigInt ) : void
aBigInt Org.BouncyCastle.Math.BigInteger
Результат void

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

Adds a string to the blob
public AddStringBlob ( string aString ) : void
aString string the string to add
Результат void

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

Creates new instance of BlobBuilder
public BlobBuilder ( ) : System
Результат System

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

Writes 0 to all values, then clears list
public Clear ( ) : void
Результат void

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

Gets the resulting blob from the blob builder.
public GetBlob ( ) : byte[]
Результат byte[]

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

public GetBlobAsPinnedByteArray ( ) : PinnedArray
Результат PinnedArray

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

Prepends header
public InsertHeader ( Agent aMessage ) : void
aMessage Agent message number to include in header
Результат void

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

Prepends header
public InsertHeader ( Agent aMessage, int aHeaderData ) : void
aMessage Agent message number to include in header
aHeaderData int data to include in header
Результат void