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

◆ GetProviderParameterWorker()

static int Internal.NativeCrypto.CapiHelper.GetProviderParameterWorker ( SafeProvHandle safeProvHandle,
byte[] impType,
ref int cb,
global::Interop::Advapi32::CryptProvParam flags )
inlinestaticpackage

Definition at line 612 of file CapiHelper.cs.

613 {
614 int result = 0;
615 if (!global::Interop.Advapi32.CryptGetProvParam(safeProvHandle, flags, impType, ref cb))
616 {
617 throw GetErrorCode().ToCryptographicException();
618 }
619 if (impType != null && cb == 4)
620 {
621 result = BitConverter.ToInt32(impType, 0);
622 }
623 return result;
624 }
static int ToInt32(byte[] value, int startIndex)

References Internal.NativeCrypto.CapiHelper.GetErrorCode(), and System.BitConverter.ToInt32().

Referenced by Internal.NativeCrypto.CapiHelper.GetProviderParameter().