C# Class OpenStory.Cryptography.RollingIvFactory

Represents a class used to create RollingIv instances.
Afficher le fichier Open project: shoftee/OpenStory Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetMaskedVersion ( ushort version, VersionMaskType versionMaskType ) : ushort

Method Details

CreateDecryptIv() public méthode

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.
Résultat RollingIv

CreateEncryptIv() public méthode

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.
Résultat RollingIv

RollingIvFactory() public méthode

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 méthode

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.