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

◆ SetKeyParameter() [2/2]

static void Internal.NativeCrypto.CapiHelper.SetKeyParameter ( SafeKeyHandle safeKeyHandle,
CryptGetKeyParamQueryType keyParam,
int value )
inlinestaticpackage

Definition at line 820 of file CapiHelper.cs.

821 {
822 VerifyValidHandle(safeKeyHandle);
823 if (((uint)(keyParam - 4) <= 1u || keyParam == CryptGetKeyParamQueryType.KP_EFFECTIVE_KEYLEN) && !global::Interop.Advapi32.CryptSetKeyParam(safeKeyHandle, (int)keyParam, ref value, 0))
824 {
826 }
827 }
static void VerifyValidHandle(SafeHandleZeroOrMinusOneIsInvalid handle)
static string CryptSetKeyParam_Failed
Definition SR.cs:74
Definition SR.cs:7

References System.SR.CryptSetKeyParam_Failed, Internal.NativeCrypto.CapiHelper.GetErrorCode(), System.ToString, System.value, and Internal.NativeCrypto.CapiHelper.VerifyValidHandle().