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

◆ SetEffectiveKeyLength()

static void Internal.NativeCrypto.Cng.SetEffectiveKeyLength ( this SafeAlgorithmHandle hAlg,
int effectiveKeyLength )
inlinestatic

Definition at line 63 of file Cng.cs.

64 {
65 global::Interop.BCrypt.NTSTATUS nTSTATUS = Interop.BCryptSetIntProperty(hAlg, "EffectiveKeyLength", ref effectiveKeyLength, 0);
66 if (nTSTATUS != 0)
67 {
68 throw CreateCryptographicException(nTSTATUS);
69 }
70 }
static Exception CreateCryptographicException(global::Interop.BCrypt.NTSTATUS ntStatus)
Definition Cng.cs:72

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