C# Class ICSharpCode.SharpZipLib.Encryption.ZipAESTransform

Transforms stream using AES in CTR mode
Inheritance: ICryptoTransform
ファイルを表示 Open project: icsharpcode/SharpZipLib Class Usage Examples

Public Methods

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

Method Details

Dispose() public method

Cleanup internal state.
public Dispose ( ) : void
return void

GetAuthCode() public method

Returns the 10 byte AUTH CODE to be checked or appended immediately following the AES data stream.
public GetAuthCode ( ) : byte[]
return byte[]

TransformBlock() public method

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
return int

TransformFinalBlock() public method

Not implemented.
public TransformFinalBlock ( byte inputBuffer, int inputOffset, int inputCount ) : byte[]
inputBuffer byte
inputOffset int
inputCount int
return byte[]

ZipAESTransform() public method

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.
return System