5 internal static class LocalAppContextSwitches
7 internal const string DontReliablyClonePrivateKeyStr =
"Switch.System.Security.Cryptography.X509Certificates.RSACertificateExtensions.DontReliablyClonePrivateKey";
9 private static int _dontReliablyClonePrivateKeyName;
11 internal const string AesCryptoServiceProviderDontCorrectlyResetDecryptorStr =
"Switch.System.Security.Cryptography.AesCryptoServiceProvider.DontCorrectlyResetDecryptor";
13 private static int _aesCryptoServiceProviderDontCorrectlyResetDecryptorName;
15 internal const string SymmetricCngAlwaysUseNCryptStr =
"Switch.System.Security.Cryptography.SymmetricCng.AlwaysUseNCrypt";
17 private static int _symmetricCngAlwaysUseNCryptName;
19 public static bool DontReliablyClonePrivateKey
24 return System.
LocalAppContext.GetCachedSwitchValue(
"Switch.System.Security.Cryptography.X509Certificates.RSACertificateExtensions.DontReliablyClonePrivateKey", ref _dontReliablyClonePrivateKeyName);
28 public static bool AesCryptoServiceProviderDontCorrectlyResetDecryptor
33 return System.
LocalAppContext.GetCachedSwitchValue(
"Switch.System.Security.Cryptography.AesCryptoServiceProvider.DontCorrectlyResetDecryptor", ref _aesCryptoServiceProviderDontCorrectlyResetDecryptorName);
37 public static bool SymmetricCngAlwaysUseNCrypt
42 return System.
LocalAppContext.GetCachedSwitchValue(
"Switch.System.Security.Cryptography.SymmetricCng.AlwaysUseNCrypt", ref _symmetricCngAlwaysUseNCryptName);
MethodImplOptions
Defines the details of how a method is implemented.