C# Класс ICSharpCode.SharpZipLib.Encryption.ZipAESTransform

Transforms stream using AES in CTR mode
Наследование: ICryptoTransform
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Cleanup internal state.

GetAuthCode ( ) : byte[]

Returns the 10 byte AUTH CODE to be checked or appended immediately following the AES data stream.

TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int

Implement the ICryptoTransform method.

TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]

Not implemented.

ZipAESTransform ( string key, byte saltBytes, int blockSize, bool writeMode ) : System

Constructor.

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

Dispose() публичный Метод

Cleanup internal state.
public Dispose ( ) : void
Результат void

GetAuthCode() публичный Метод

Returns the 10 byte AUTH CODE to be checked or appended immediately following the AES data stream.
public GetAuthCode ( ) : byte[]
Результат byte[]

TransformBlock() публичный Метод

Implement the ICryptoTransform method.
public TransformBlock ( byte inputBuffer, int inputOffset, int inputCount, byte outputBuffer, int outputOffset ) : int
inputBuffer byte
inputOffset int
inputCount int
outputBuffer byte
outputOffset int
Результат int

TransformFinalBlock() публичный Метод

Not implemented.
public TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]
inputBuffer byte
inputOffset int
inputCount int
Результат byte[]

ZipAESTransform() публичный Метод

Constructor.
public ZipAESTransform ( string key, byte saltBytes, int blockSize, bool writeMode ) : System
key string Password string
saltBytes byte Random bytes, length depends on encryption strength. /// 128 bits = 8 bytes, 192 bits = 12 bytes, 256 bits = 16 bytes.
blockSize int The encryption strength, in bytes eg 16 for 128 bits.
writeMode bool True when creating a zip, false when reading. For the AuthCode.
Результат System