C# 클래스 ICSharpCode.SharpZipLib.Encryption.ZipAESTransform

Transforms stream using AES in CTR mode
상속: ICryptoTransform
파일 보기 프로젝트 열기: icsharpcode/SharpZipLib 1 사용 예제들

공개 메소드들

메소드 설명
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