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

◆ SetCipherMode() [1/2]

static void Internal.NativeCrypto.Cng.SetCipherMode ( this Internal::NativeCrypto::SafeAlgorithmHandle hAlg,
string cipherMode )
inlinestatic

Definition at line 54 of file Cng.cs.

55 {
56 global::Interop.BCrypt.NTSTATUS nTSTATUS = Interop.BCryptSetProperty(hAlg, "ChainingMode", cipherMode, (cipherMode.Length + 1) * 2, 0);
57 if (nTSTATUS != 0)
58 {
59 throw CreateCryptographicException(nTSTATUS);
60 }
61 }
static Exception CreateCryptographicException(global::Interop.BCrypt.NTSTATUS ntStatus)
Definition Cng.cs:72

References Internal.NativeCrypto.Cng.Interop.BCryptSetProperty(), and Internal.NativeCrypto.Cng.CreateCryptographicException().