C# Class ICSharpCode.SharpZipLib.Encryption.ZipAESStream

Encrypts and decrypts AES ZIP
Based on information from http://www.winzip.com/aes_info.htm and http://www.gladman.me.uk/cryptography_technology/fileencrypt/
Inheritance: System.Security.Cryptography.CryptoStream
Exibir arquivo Open project: icsharpcode/SharpZipLib Class Usage Examples

Public Methods

Method Description
Read ( byte buffer, int offset, int count ) : int

Reads a sequence of bytes from the current CryptoStream into buffer, and advances the position within the stream by the number of bytes read.

Write ( byte buffer, int offset, int count ) : void

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

ZipAESStream ( Stream stream, ZipAESTransform transform, CryptoStreamMode mode ) : System

Constructor

Method Details

Read() public method

Reads a sequence of bytes from the current CryptoStream into buffer, and advances the position within the stream by the number of bytes read.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Write() public method

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public Write ( byte buffer, int offset, int count ) : void
buffer byte An array of bytes. This method copies count bytes from buffer to the current stream.
offset int The byte offset in buffer at which to begin copying bytes to the current stream.
count int The number of bytes to be written to the current stream.
return void

ZipAESStream() public method

Constructor
public ZipAESStream ( Stream stream, ZipAESTransform transform, CryptoStreamMode mode ) : System
stream Stream The stream on which to perform the cryptographic transformation.
transform ZipAESTransform Instance of ZipAESTransform
mode CryptoStreamMode Read or Write
return System