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

◆ UpgradeDSS()

static string Internal.NativeCrypto.CapiHelper.UpgradeDSS ( int dwProvType,
string wszProvider )
inlinestatic

Definition at line 415 of file CapiHelper.cs.

416 {
417 string result = null;
418 if (string.Equals(wszProvider, "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider", StringComparison.Ordinal))
419 {
420 if (AcquireCryptContext(out var safeProvHandle, null, "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider", dwProvType, 4026531840u) == 0)
421 {
422 result = "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider";
423 }
424 safeProvHandle.Dispose();
425 }
426 return result;
427 }
static int AcquireCryptContext(out SafeProvHandle safeProvHandle, string keyContainer, string providerName, int providerType, uint flags)

References Internal.NativeCrypto.CapiHelper.AcquireCryptContext().

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