Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateTransformCore()

static UniversalCryptoTransform Internal.Cryptography.RC2Implementation.CreateTransformCore ( CipherMode cipherMode,
PaddingMode paddingMode,
byte[] key,
int effectiveKeyLength,
byte[] iv,
int blockSize,
int feedbackSize,
int paddingSize,
bool encrypting )
inlinestaticprivate

Definition at line 167 of file RC2Implementation.cs.

168 {
169 using SafeAlgorithmHandle algorithm = RC2BCryptModes.GetHandle(cipherMode, effectiveKeyLength);
170 BasicSymmetricCipher cipher = new BasicSymmetricCipherBCrypt(algorithm, cipherMode, blockSize, paddingSize, key, ownsParentHandle: true, iv, encrypting);
171 return UniversalCryptoTransform.Create(paddingMode, cipher, encrypting);
172 }

References Internal.Cryptography.UniversalCryptoTransform.Create(), Internal.Cryptography.RC2BCryptModes.GetHandle(), and System.key.

Referenced by Internal.Cryptography.RC2Implementation.CreateTransform(), Internal.Cryptography.RC2Implementation.TryDecryptCbcCore(), Internal.Cryptography.RC2Implementation.TryDecryptEcbCore(), Internal.Cryptography.RC2Implementation.TryEncryptCbcCore(), and Internal.Cryptography.RC2Implementation.TryEncryptEcbCore().