77 references to CryptoConfig
mscorlib (59)
system\security\cryptography\aes.cs (1)
45
return
CryptoConfig
.CreateFromName(algorithmName) as Aes;
system\security\cryptography\asymmetricalgorithm.cs (1)
100
return (AsymmetricAlgorithm)
CryptoConfig
.CreateFromName(algName);
system\security\cryptography\cryptoconfig.cs (1)
96
version = ((RuntimeType)typeof(
CryptoConfig
)).GetRuntimeAssembly().GetVersion().ToString();
system\security\cryptography\des.cs (1)
79
return (DES)
CryptoConfig
.CreateFromName(algName);
system\security\cryptography\dsa.cs (3)
60
return (DSA)
CryptoConfig
.CreateFromName(algName);
64
DSA dsa = (DSA)
CryptoConfig
.CreateFromName("DSA-FIPS186-3");
75
DSA dsa = (DSA)
CryptoConfig
.CreateFromName("DSA-FIPS186-3");
system\security\cryptography\dsasignaturedeformatter.cs (2)
29
_oid =
CryptoConfig
.MapNameToOID("SHA1", OidGroup.HashAlgorithm);
51
if (
CryptoConfig
.MapNameToOID(strName, OidGroup.HashAlgorithm) != _oid)
system\security\cryptography\dsasignatureformatter.cs (2)
29
_oid =
CryptoConfig
.MapNameToOID("SHA1", OidGroup.HashAlgorithm);
51
if (
CryptoConfig
.MapNameToOID(strName, OidGroup.HashAlgorithm) != _oid)
system\security\cryptography\hashalgorithm.cs (1)
54
return (HashAlgorithm)
CryptoConfig
.CreateFromName(hashName);
system\security\cryptography\hmac.cs (2)
125
return (HMAC)
CryptoConfig
.CreateFromName(algorithmName);
192
if (
CryptoConfig
.AllowOnlyFipsAlgorithms) {
system\security\cryptography\keyedhashalgorithm.cs (1)
53
return (KeyedHashAlgorithm)
CryptoConfig
.CreateFromName(algName);
system\security\cryptography\md5.cs (1)
30
return (MD5)
CryptoConfig
.CreateFromName(algName);
system\security\cryptography\md5cryptoserviceprovider.cs (1)
30
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\passwordderivebytes.cs (1)
99
_hash = (HashAlgorithm)
CryptoConfig
.CreateFromName(_hashName);
system\security\cryptography\pkcs1maskgenerationmethod.cs (1)
43
HashAlgorithm hash = (HashAlgorithm)
CryptoConfig
.CreateFromName(HashNameValue);
system\security\cryptography\randomnumbergenerator.cs (1)
38
return (RandomNumberGenerator)
CryptoConfig
.CreateFromName(rngName);
system\security\cryptography\rc2.cs (1)
79
return (RC2)
CryptoConfig
.CreateFromName(AlgName);
system\security\cryptography\rc2cryptoserviceprovider.cs (1)
39
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\rijndael.cs (1)
48
return (Rijndael)
CryptoConfig
.CreateFromName(algName);
system\security\cryptography\rijndaelmanaged.cs (1)
28
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\ripemd160.cs (1)
36
return (RIPEMD160)
CryptoConfig
.CreateFromName(hashName);
system\security\cryptography\ripemd160managed.cs (1)
40
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\rsa.cs (3)
58
return (RSA)
CryptoConfig
.CreateFromName(algName);
62
RSA rsa = (RSA)
CryptoConfig
.CreateFromName("RSAPSS");
73
RSA rsa = (RSA)
CryptoConfig
.CreateFromName("RSAPSS");
system\security\cryptography\rsapkcs1signaturedeformatter.cs (2)
57
_strOID =
CryptoConfig
.MapNameToOID(strName, OidGroup.HashAlgorithm);
87
byte[] pad = Utils.RsaPkcs1Padding(_rsaKey,
CryptoConfig
.EncodeOID(_strOID), rgbHash);
system\security\cryptography\rsapkcs1signatureformatter.cs (2)
50
_strOID =
CryptoConfig
.MapNameToOID(strName, OidGroup.HashAlgorithm);
78
byte[] pad = Utils.RsaPkcs1Padding(_rsaKey,
CryptoConfig
.EncodeOID(_strOID), rgbHash);
system\security\cryptography\sha1.cs (1)
30
return (SHA1)
CryptoConfig
.CreateFromName(hashName);
system\security\cryptography\sha1managed.cs (2)
42
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
47
if (
CryptoConfig
.AllowOnlyFipsAlgorithms) {
system\security\cryptography\sha256.cs (1)
36
return (SHA256)
CryptoConfig
.CreateFromName(hashName);
system\security\cryptography\sha256managed.cs (2)
44
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
49
if (
CryptoConfig
.AllowOnlyFipsAlgorithms) {
system\security\cryptography\sha384.cs (1)
36
return (SHA384)
CryptoConfig
.CreateFromName(hashName);
system\security\cryptography\sha384managed.cs (2)
42
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
46
if (
CryptoConfig
.AllowOnlyFipsAlgorithms) {
system\security\cryptography\sha512.cs (1)
36
return (SHA512)
CryptoConfig
.CreateFromName(hashName);
system\security\cryptography\sha512managed.cs (2)
34
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
38
if (
CryptoConfig
.AllowOnlyFipsAlgorithms) {
system\security\cryptography\signaturedescription.cs (3)
68
item = (AsymmetricSignatureDeformatter)
CryptoConfig
.CreateFromName(_strDeformatter);
76
item = (AsymmetricSignatureFormatter)
CryptoConfig
.CreateFromName(_strFormatter);
82
return (HashAlgorithm)
CryptoConfig
.CreateFromName(_strDigest);
system\security\cryptography\symmetricalgorithm.cs (1)
224
return (SymmetricAlgorithm)
CryptoConfig
.CreateFromName(algName);
system\security\cryptography\tripledes.cs (1)
75
return (TripleDES)
CryptoConfig
.CreateFromName(str);
system\security\cryptography\utils.cs (6)
582
oidValue =
CryptoConfig
.MapNameToOID(hashAlgString, group);
587
oidValue =
CryptoConfig
.MapNameToOID(hashAlg.GetType().ToString(), group);
590
oidValue =
CryptoConfig
.MapNameToOID(hashAlg.ToString(), group);
606
hash = (HashAlgorithm)
CryptoConfig
.CreateFromName((string) hashAlg);
610
hash = (HashAlgorithm)
CryptoConfig
.CreateFromName(oidFriendlyName);
617
hash = (HashAlgorithm)
CryptoConfig
.CreateFromName(hashAlg.ToString());
system\security\cryptography\x509certificates\x509certificate.cs (1)
335
using (HashAlgorithm hash =
CryptoConfig
.CreateFromName(hashAlgorithm.Name) as HashAlgorithm) {
system\security\cryptography\x509certificates\x509utils.cs (1)
216
string oidValue =
CryptoConfig
.MapNameToOID(oid, oidGroup);
system\security\policy\hash.cs (1)
415
if (!
CryptoConfig
.AllowOnlyFipsAlgorithms)
System (2)
security\system\security\cryptography\x509\x509chain.cs (1)
93
return (X509Chain)
CryptoConfig
.CreateFromName("X509Chain");
security\system\security\cryptography\x509\x509extension.cs (1)
612
X509Extension customExtension =
CryptoConfig
.CreateFromName(extension.Oid.Value) as X509Extension;
System.Core (4)
System\Security\Cryptography\AesManaged.cs (1)
25
if (
CryptoConfig
.AllowOnlyFipsAlgorithms) {
System\Security\Cryptography\ECDiffieHellman.cs (1)
37
return
CryptoConfig
.CreateFromName(algorithm) as ECDiffieHellman;
System\Security\Cryptography\ECDsa.cs (1)
37
return
CryptoConfig
.CreateFromName(algorithm) as ECDsa;
System\Security\Cryptography\MD5Cng.cs (1)
21
if (
CryptoConfig
.AllowOnlyFipsAlgorithms && LocalAppContextSwitches.UseLegacyFipsThrow) {
System.IdentityModel (1)
System\IdentityModel\CryptoHelper.cs (1)
1259
algorithmObject =
CryptoConfig
.CreateFromName(algorithm);
System.IdentityModel.Selectors (2)
infocard\client\System\IdentityModel\Selectors\InfoCardRSAPKCS1SignatureDeformatter.cs (1)
39
m_strOID =
CryptoConfig
.MapNameToOID(strName);
infocard\client\System\IdentityModel\Selectors\InfoCardRSAPKCS1SignatureFormatter.cs (1)
40
m_strOID =
CryptoConfig
.MapNameToOID(strName);
System.Security (4)
system\security\cryptography\dataprotector.cs (1)
136
return (DataProtector)
CryptoConfig
.CreateFromName(providerClass, applicationName, primaryPurpose, specificPurposes);
system\security\cryptography\pkcs\pkcsutils.cs (1)
575
Pkcs9AttributeObject customAttribute =
CryptoConfig
.CreateFromName(szOid) as Pkcs9AttributeObject;
system\security\cryptography\xml\utils.cs (2)
465
return
CryptoConfig
.CreateFromName(key) as T;
475
return
CryptoConfig
.CreateFromName(key) as T;
System.Web (2)
Compilation\AssemblyBuilder.cs (1)
668
using (HashAlgorithm ha = (HashAlgorithm)
CryptoConfig
.CreateFromName(hashAlgorithm)) {
Security\Cryptography\MachineKeyCryptoAlgorithmFactory.cs (1)
102
return (TResult)
CryptoConfig
.CreateFromName(algorithmName);
System.Windows.Forms (2)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (2)
66
CryptoConfig
.AddAlgorithm(typeof(RSAPKCS1SHA256SignatureDescription),
69
CryptoConfig
.AddAlgorithm(typeof(System.Security.Cryptography.SHA256Cng),
WindowsBase (1)
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
573
Object o =
CryptoConfig
.CreateFromName(hashAlgorithmName);