C# 클래스 OpenStory.Cryptography.CryptoTransformBase

Encapsulates cryptographic transformation data and routines for the rolling packet encryption and decryption.
상속: ICryptoAlgorithm
파일 보기 프로젝트 열기: shoftee/OpenStory

공개 메소드들

메소드 설명
ShuffleIv ( byte vector ) : byte[]
TransformArraySegment ( byte data, byte vector, int segmentStart, int segmentEnd ) : void
TransformWithIv ( byte data, byte vector ) : byte[]

보호된 메소드들

메소드 설명
CryptoTransformBase ( byte table, byte vector ) : System

Initializes a new instance of the CryptoTransformBase class.

The provided arrays are copied into the CryptoTransformBase instance to avoid mutation.

ShuffleIvStep ( byte shuffled, byte vectorByte ) : void

Executes a single shuffle step.

메소드 상세

CryptoTransformBase() 보호된 메소드

Initializes a new instance of the CryptoTransformBase class.
The provided arrays are copied into the CryptoTransformBase instance to avoid mutation.
Thrown if any of the provided parameters is . Thrown if any of the provided arrays has an invalid number of elements.
protected CryptoTransformBase ( byte table, byte vector ) : System
table byte The shuffle transformation table.
vector byte The initial value for the shuffle transformation.
리턴 System

ShuffleIv() 공개 메소드

public ShuffleIv ( byte vector ) : byte[]
vector byte
리턴 byte[]

ShuffleIvStep() 보호된 메소드

Executes a single shuffle step.
protected ShuffleIvStep ( byte shuffled, byte vectorByte ) : void
shuffled byte The array to shuffle.
vectorByte byte The IV input byte.
리턴 void

TransformArraySegment() 공개 추상적인 메소드

public abstract TransformArraySegment ( byte data, byte vector, int segmentStart, int segmentEnd ) : void
data byte
vector byte
segmentStart int
segmentEnd int
리턴 void

TransformWithIv() 공개 메소드

public TransformWithIv ( byte data, byte vector ) : byte[]
data byte
vector byte
리턴 byte[]