34 dictionary.Add(
"System.Security.Cryptography.SHA1",
"1.3.14.3.2.26");
35 dictionary.Add(
"System.Security.Cryptography.SHA1CryptoServiceProvider",
"1.3.14.3.2.26");
36 dictionary.Add(
"System.Security.Cryptography.SHA1Cng",
"1.3.14.3.2.26");
37 dictionary.Add(
"System.Security.Cryptography.SHA1Managed",
"1.3.14.3.2.26");
38 dictionary.Add(
"SHA256",
"2.16.840.1.101.3.4.2.1");
39 dictionary.Add(
"System.Security.Cryptography.SHA256",
"2.16.840.1.101.3.4.2.1");
40 dictionary.Add(
"System.Security.Cryptography.SHA256CryptoServiceProvider",
"2.16.840.1.101.3.4.2.1");
41 dictionary.Add(
"System.Security.Cryptography.SHA256Cng",
"2.16.840.1.101.3.4.2.1");
42 dictionary.Add(
"System.Security.Cryptography.SHA256Managed",
"2.16.840.1.101.3.4.2.1");
43 dictionary.Add(
"SHA384",
"2.16.840.1.101.3.4.2.2");
44 dictionary.Add(
"System.Security.Cryptography.SHA384",
"2.16.840.1.101.3.4.2.2");
45 dictionary.Add(
"System.Security.Cryptography.SHA384CryptoServiceProvider",
"2.16.840.1.101.3.4.2.2");
46 dictionary.Add(
"System.Security.Cryptography.SHA384Cng",
"2.16.840.1.101.3.4.2.2");
47 dictionary.Add(
"System.Security.Cryptography.SHA384Managed",
"2.16.840.1.101.3.4.2.2");
48 dictionary.Add(
"SHA512",
"2.16.840.1.101.3.4.2.3");
49 dictionary.Add(
"System.Security.Cryptography.SHA512",
"2.16.840.1.101.3.4.2.3");
50 dictionary.Add(
"System.Security.Cryptography.SHA512CryptoServiceProvider",
"2.16.840.1.101.3.4.2.3");
51 dictionary.Add(
"System.Security.Cryptography.SHA512Cng",
"2.16.840.1.101.3.4.2.3");
52 dictionary.Add(
"System.Security.Cryptography.SHA512Managed",
"2.16.840.1.101.3.4.2.3");
54 dictionary.Add(
"System.Security.Cryptography.RIPEMD160",
"1.3.36.3.2.1");
55 dictionary.Add(
"System.Security.Cryptography.RIPEMD160Managed",
"1.3.36.3.2.1");
57 dictionary.Add(
"System.Security.Cryptography.MD5",
"1.2.840.113549.2.5");
58 dictionary.Add(
"System.Security.Cryptography.MD5CryptoServiceProvider",
"1.2.840.113549.2.5");
59 dictionary.Add(
"System.Security.Cryptography.MD5Managed",
"1.2.840.113549.2.5");
60 dictionary.Add(
"TripleDESKeyWrap",
"1.2.840.113549.1.9.16.3.6");
62 dictionary.Add(
"System.Security.Cryptography.RC2CryptoServiceProvider",
"1.2.840.113549.3.2");
64 dictionary.Add(
"System.Security.Cryptography.DESCryptoServiceProvider",
"1.3.14.3.2.7");
65 dictionary.Add(
"TripleDES",
"1.2.840.113549.3.7");
66 dictionary.Add(
"System.Security.Cryptography.TripleDESCryptoServiceProvider",
"1.2.840.113549.3.7");
91 string value =
"System.Security.Cryptography.SHA1CryptoServiceProvider, System.Security.Cryptography.Csp";
92 string value2 =
"System.Security.Cryptography.MD5CryptoServiceProvider,System.Security.Cryptography.Csp";
93 string value3 =
"System.Security.Cryptography.RSACryptoServiceProvider, System.Security.Cryptography.Csp";
94 string value4 =
"System.Security.Cryptography.DSACryptoServiceProvider, System.Security.Cryptography.Csp";
95 string value5 =
"System.Security.Cryptography.DESCryptoServiceProvider, System.Security.Cryptography.Csp";
96 string value6 =
"System.Security.Cryptography.TripleDESCryptoServiceProvider, System.Security.Cryptography.Csp";
97 string value7 =
"System.Security.Cryptography.RC2CryptoServiceProvider, System.Security.Cryptography.Csp";
98 string value8 =
"System.Security.Cryptography.RNGCryptoServiceProvider, System.Security.Cryptography.Csp";
99 string value9 =
"System.Security.Cryptography.AesCryptoServiceProvider, System.Security.Cryptography.Csp";
100 string value10 =
"System.Security.Cryptography.ECDsaCng, System.Security.Cryptography.Cng";
179 dictionary.
Add(
"2.5.29.10",
"System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension, System.Security.Cryptography.X509Certificates");
180 dictionary.
Add(
"2.5.29.19",
"System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension, System.Security.Cryptography.X509Certificates");
181 dictionary.
Add(
"2.5.29.14",
"System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension, System.Security.Cryptography.X509Certificates");
182 dictionary.
Add(
"2.5.29.15",
"System.Security.Cryptography.X509Certificates.X509KeyUsageExtension, System.Security.Cryptography.X509Certificates");
183 dictionary.
Add(
"2.5.29.37",
"System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension, System.Security.Cryptography.X509Certificates");
184 dictionary.
Add(
"X509Chain",
"System.Security.Cryptography.X509Certificates.X509Chain, System.Security.Cryptography.X509Certificates");
185 dictionary.
Add(
"1.2.840.113549.1.9.3",
"System.Security.Cryptography.Pkcs.Pkcs9ContentType, System.Security.Cryptography.Pkcs");
186 dictionary.
Add(
"1.2.840.113549.1.9.4",
"System.Security.Cryptography.Pkcs.Pkcs9MessageDigest, System.Security.Cryptography.Pkcs");
187 dictionary.
Add(
"1.2.840.113549.1.9.5",
"System.Security.Cryptography.Pkcs.Pkcs9SigningTime, System.Security.Cryptography.Pkcs");
188 dictionary.
Add(
"1.3.6.1.4.1.311.88.2.1",
"System.Security.Cryptography.Pkcs.Pkcs9DocumentName, System.Security.Cryptography.Pkcs");
189 dictionary.
Add(
"1.3.6.1.4.1.311.88.2.2",
"System.Security.Cryptography.Pkcs.Pkcs9DocumentDescription, System.Security.Cryptography.Pkcs");
215 if (
string.IsNullOrEmpty(
value))
227 [
RequiresUnreferencedCode(
"The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
251 if (
value ==
null && (
args ==
null ||
args.Length == 1) && name ==
"ECDsa")
304 [
RequiresUnreferencedCode(
"The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
326 if (
string.IsNullOrEmpty(
value))
362 [
Obsolete(
"EncodeOID is obsolete. Use the ASN.1 functionality provided in System.Formats.Asn1.", DiagnosticId =
"SYSLIB0031", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
371 for (
int i = 0; i <
array.Length; i++)
404 if ((
int)
value < 128)
415 else if (
value < 16384)
427 else if (
value < 2097152)
440 else if (
value < 268435456)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
void Add(TKey key, TValue value)
static CultureInfo InvariantCulture
static string Cryptography_AlgorithmTypesMustBeVisible
static string Cryptography_InvalidOID
static string Cryptography_Config_EncodedOIDError
static string Cryptography_AddNullOrEmptyName
static volatile Dictionary< string, object > s_defaultNameHT
static Dictionary< string, object > DefaultNameHT
static void AddOID(string oid, params string[] names)
static readonly ConcurrentDictionary< string, Type > appNameHT
static ? object CreateFromName(string name)
static void AddAlgorithm(Type algorithm, params string[] names)
static volatile Dictionary< string, string > s_defaultOidHT
static ? string MapNameToOID(string name)
static byte[] EncodeOID(string str)
static ? object CreateFromName(string name, params object?[]? args)
static bool AllowOnlyFipsAlgorithms
static Dictionary< string, string > DefaultOidHT
static void EncodeSingleOidNum(uint value, byte[] destination, ref int index)
static readonly ConcurrentDictionary< string, string > appOidHT
static new? ECDsa Create(string algorithm)
static Oid FromFriendlyName(string friendlyName, OidGroup group)
static StringComparer OrdinalIgnoreCase
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
static Binder DefaultBinder