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

◆ GetHandle()

static SafeAlgorithmHandle Internal.Cryptography.RC2BCryptModes.GetHandle ( CipherMode cipherMode,
int effectiveKeyLength )
inlinestaticpackage

Definition at line 9 of file RC2BCryptModes.cs.

10 {
11 return cipherMode switch
12 {
13 CipherMode.CBC => OpenRC2Algorithm("ChainingModeCBC", effectiveKeyLength),
14 CipherMode.ECB => OpenRC2Algorithm("ChainingModeECB", effectiveKeyLength),
15 _ => throw new NotSupportedException(),
16 };
17 }
static SafeAlgorithmHandle OpenRC2Algorithm(string cipherMode, int effectiveKeyLength)

References Internal.Cryptography.RC2BCryptModes.OpenRC2Algorithm().

Referenced by Internal.Cryptography.RC2Implementation.CreateTransformCore().