C# Class OpenStory.Cryptography.RollingIvFactory

Represents a class used to create RollingIv instances.
Exibir arquivo Open project: shoftee/OpenStory Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
GetMaskedVersion ( ushort version, VersionMaskType versionMaskType ) : ushort

Method Details

CreateDecryptIv() public method

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.
return RollingIv

CreateEncryptIv() public method

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.
return RollingIv

RollingIvFactory() public method

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() public method

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.