C# Класс OpenStory.Cryptography.CryptoTransformBase

Encapsulates cryptographic transformation data and routines for the rolling packet encryption and decryption.
Наследование: ICryptoAlgorithm
Показать файл Открыть проект

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

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