Table of Contents

Interface IEncrypter

Namespace
VAST.Crypto
Assembly
VAST.Common.dll

Defines an interface for encryption and decryption operations.

public interface IEncrypter : IDisposable
Inherited Members

Properties

IV

Gets or sets the initialization vector.

byte[] IV { get; set; }

Property Value

byte[]

KeySize

Gets the key size in bits.

int KeySize { get; }

Property Value

int

Methods

DecryptFinal(byte[], int, int, VersatileBuffer)

Decrypts data with finalization.

int DecryptFinal(byte[] data, int start, int length, VersatileBuffer output = null)

Parameters

data byte[]

The data to decrypt.

start int

The starting index.

length int

The number of bytes to decrypt.

output VersatileBuffer

Optional output buffer.

Returns

int

The number of bytes in the decrypted output.

DecryptFinal(VersatileBufferStream)

Decrypts a stream with finalization.

VersatileBufferStream DecryptFinal(VersatileBufferStream stream)

Parameters

stream VersatileBufferStream

The stream to decrypt.

Returns

VersatileBufferStream

The decrypted stream.

Encrypt(VersatileBufferStream, int, int)

Encrypts a portion of the stream without finalization.

VersatileBufferStream Encrypt(VersatileBufferStream stream, int offset, int size)

Parameters

stream VersatileBufferStream

The stream to encrypt.

offset int

The offset within the stream.

size int

The number of bytes to encrypt.

Returns

VersatileBufferStream

The encrypted stream.

EncryptFinal(byte[], int, int, VersatileBuffer)

Encrypts data with finalization.

int EncryptFinal(byte[] data, int start, int length, VersatileBuffer output = null)

Parameters

data byte[]

The data to encrypt.

start int

The starting index.

length int

The number of bytes to encrypt.

output VersatileBuffer

Optional output buffer.

Returns

int

The number of bytes in the encrypted output.

EncryptFinal(VersatileBufferStream)

Encrypts a stream with finalization.

VersatileBufferStream EncryptFinal(VersatileBufferStream stream)

Parameters

stream VersatileBufferStream

The stream to encrypt.

Returns

VersatileBufferStream

The encrypted stream.