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

Represents a class used to create RollingIv instances.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateDecryptIv ( byte initialIv, VersionMaskType versionMaskType ) : RollingIv

Creates a new RollingIv instance.

CreateEncryptIv ( byte initialIv, VersionMaskType versionMaskType ) : RollingIv

Creates a new RollingIv instance.

RollingIvFactory ( ICryptoAlgorithm encryptionAlgorithm, ICryptoAlgorithm decryptionAlgorithm, ushort version )

Initializes a new instance of the RollingIvFactory class.

RollingIvFactory ( ICryptoAlgorithm symmetricAlgorithm, ushort version )

Initializes a new instance of the RollingIvFactory class.

Приватные методы

Метод Описание
GetMaskedVersion ( ushort version, VersionMaskType versionMaskType ) : ushort

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

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

Creates a new RollingIv instance.
public CreateDecryptIv ( byte initialIv, VersionMaskType versionMaskType ) : RollingIv
initialIv byte The initial IV for the new instance.
versionMaskType VersionMaskType The for the new instance.
Результат RollingIv

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

Creates a new RollingIv instance.
public CreateEncryptIv ( byte initialIv, VersionMaskType versionMaskType ) : RollingIv
initialIv byte The initial IV for the new instance.
versionMaskType VersionMaskType The for the new instance.
Результат RollingIv

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

Initializes a new instance of the RollingIvFactory class.
public RollingIvFactory ( ICryptoAlgorithm encryptionAlgorithm, ICryptoAlgorithm decryptionAlgorithm, ushort version )
encryptionAlgorithm ICryptoAlgorithm The instance to use for encryption IVs.
decryptionAlgorithm ICryptoAlgorithm The instance to use for decryption IVs.
version ushort The version number to assign to created instances.

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

Initializes a new instance of the RollingIvFactory class.
public RollingIvFactory ( ICryptoAlgorithm symmetricAlgorithm, ushort version )
symmetricAlgorithm ICryptoAlgorithm The instance to use for both encryption and decryption.
version ushort The version number to assign to created instances.