C# Класс 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/
Наследование: System.Security.Cryptography.CryptoStream
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

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

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
Результат int

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

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.
Результат void

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

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
Результат System