C# Class ICSharpCode.SharpZipLib.Encryption.ZipAESTransform

Transforms stream using AES in CTR mode
Inheritance: ICryptoTransform
Afficher le fichier Open project: icsharpcode/SharpZipLib Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Cleanup internal state.
public Dispose ( ) : void
Résultat void

GetAuthCode() public méthode

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

TransformBlock() public méthode

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
Résultat int

TransformFinalBlock() public méthode

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

ZipAESTransform() public méthode

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.
Résultat System