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

◆ Open3DesAlgorithm() [1/2]

static Lazy< SafeAlgorithmHandle > Internal.Cryptography.TripleDesBCryptModes.Open3DesAlgorithm ( string cipherMode,
int feedback = 0 )
inlinestaticprivate

Definition at line 38 of file TripleDesBCryptModes.cs.

39 {
40 return new Lazy<SafeAlgorithmHandle>(delegate
41 {
43 safeAlgorithmHandle.SetCipherMode(cipherMode);
44 if (feedback > 0 && feedback != 1)
45 {
46 try
47 {
48 safeAlgorithmHandle.SetFeedbackSize(feedback);
49 }
50 catch (CryptographicException inner)
51 {
53 }
54 }
55 return safeAlgorithmHandle;
56 });
57 }
static SafeAlgorithmHandle BCryptOpenAlgorithmProvider(string pszAlgId, string pszImplementation, OpenAlgorithmProviderFlags dwFlags)
Definition Cng.cs:34
static string Cryptography_FeedbackSizeNotSupported
Definition SR.cs:176
Definition SR.cs:7

References Internal.NativeCrypto.Cng.BCryptOpenAlgorithmProvider(), and System.SR.Cryptography_FeedbackSizeNotSupported.