C# Class dlech.SshAgentLib.BlobBuilder

used to build blobs that are used for storing and sending keys in open-ssh/PuTTY format
Show file Open project: dlech/SshAgentLib Class Usage Examples

Public Methods

Method Description
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

Method Details

AddBigIntBlob() public method

Adds BigInteger to builder prefixed with size
public AddBigIntBlob ( BigInteger aBigInt ) : void
aBigInt Org.BouncyCastle.Math.BigInteger
return void

AddBlob() public method

Adds byte[] to builder as sub-blob
public AddBlob ( byte blob ) : void
blob byte
return void

AddByte() public method

Adds byte to the blob
public AddByte ( byte aByte ) : void
aByte byte
return void

AddBytes() public method

Adds byte[] to the blob
public AddBytes ( byte aBytes ) : void
aBytes byte
return void

AddInt() public method

public AddInt ( UInt32 aInt ) : void
aInt System.UInt32
return void

AddInt() public method

public AddInt ( int aInt ) : void
aInt int
return void

AddSsh1BigIntBlob() public method

Adds byte[] to builder as Ssh1 sub-blob
public AddSsh1BigIntBlob ( BigInteger aBigInt ) : void
aBigInt Org.BouncyCastle.Math.BigInteger
return void

AddStringBlob() public method

Adds a string to the blob
public AddStringBlob ( string aString ) : void
aString string the string to add
return void

BlobBuilder() public method

Creates new instance of BlobBuilder
public BlobBuilder ( ) : System
return System

Clear() public method

Writes 0 to all values, then clears list
public Clear ( ) : void
return void

GetBlob() public method

Gets the resulting blob from the blob builder.
public GetBlob ( ) : byte[]
return byte[]

GetBlobAsPinnedByteArray() public method

public GetBlobAsPinnedByteArray ( ) : PinnedArray
return PinnedArray

InsertHeader() public method

Prepends header
public InsertHeader ( Agent aMessage ) : void
aMessage Agent message number to include in header
return void

InsertHeader() public method

Prepends header
public InsertHeader ( Agent aMessage, int aHeaderData ) : void
aMessage Agent message number to include in header
aHeaderData int data to include in header
return void