11 writes to Algorithm
System.Security.Cryptography (11)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
96decoded.Algorithm = sequenceReader.ReadObjectIdentifier();
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (1)
1640Algorithm = Algorithm.Oid,
src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (1)
20Algorithm = kem.Algorithm.Oid,
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (1)
241Algorithm = AlgorithmId.Value!,
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
954Algorithm = PublicKey.Oid!.Value!,
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
177Algorithm = Oids.Dsa,
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
57Algorithm = PublicKey.Oid!.Value!,
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
349Algorithm = _oid.Value ?? string.Empty,
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (3)
75HashAlgorithm = new AlgorithmIdentifierAsn { Algorithm = digestOid }, 76MaskGenAlgorithm = new AlgorithmIdentifierAsn { Algorithm = Oids.Mgf1 }, 95Algorithm = Oids.RsaPss,
48 references to Algorithm
System.Security.Cryptography (48)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs (2)
14if (Algorithm != other.Algorithm)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
28writer.WriteObjectIdentifier(Algorithm);
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
24string algorithmValue = MacData.Value.Mac.DigestAlgorithm.Algorithm;
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (8)
19if (MaskGenAlgorithm.Algorithm != Oids.Mgf1) 23MaskGenAlgorithm.Algorithm); 35if (mgfParams.Algorithm != HashAlgorithm.Algorithm) 40mgfParams.Algorithm, 41HashAlgorithm.Algorithm)); 48saltSize = Helpers.HashOidToByteLength(HashAlgorithm.Algorithm); 57HashAlgorithm.Algorithm));
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (4)
52if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 83if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 119if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0) 146if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0)
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (4)
750MLDsaAlgorithm? algorithm = MLDsaAlgorithm.GetMLDsaAlgorithmFromOid(spki.Algorithm.Algorithm); 754throw Helpers.CreateAlgorithmUnknownException(spki.Algorithm.Algorithm); 805MLDsaAlgorithm? algorithm = MLDsaAlgorithm.GetMLDsaAlgorithmFromOid(pki.PrivateKeyAlgorithm.Algorithm); 809throw Helpers.CreateAlgorithmUnknownException(pki.PrivateKeyAlgorithm.Algorithm);
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (2)
1670MLKemAlgorithm algorithm = MLKemAlgorithm.FromOid(identifier.Algorithm) ?? 1672SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, identifier.Algorithm));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (10)
82algorithmIdentifier.Algorithm)); 93switch (algorithmIdentifier.Algorithm) 145algorithmIdentifier.Algorithm)); 157throw AlgorithmKdfRequiresChars(algorithmIdentifier.Algorithm); 522if (pbes2Params.KeyDerivationFunc.Algorithm != Oids.Pbkdf2) 527pbes2Params.EncryptionScheme.Algorithm)); 569string? algId = encryptionScheme.Algorithm; 739pbkdf2Params.Salt.OtherSource.Value.Algorithm)); 748HashAlgorithmName prf = pbkdf2Params.Prf.Algorithm switch 757pbkdf2Params.Prf.Algorithm)),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (1)
84new Oid(privateKeyInfo.PrivateKeyAlgorithm.Algorithm, null),
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (2)
729SlhDsaAlgorithm algorithm = SlhDsaAlgorithm.GetAlgorithmFromOid(spki.Algorithm.Algorithm); 779SlhDsaAlgorithm info = SlhDsaAlgorithm.GetAlgorithmFromOid(pki.PrivateKeyAlgorithm.Algorithm);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (4)
524switch (algorithmIdentifier.Algorithm) 544if (pbes2Params.KeyDerivationFunc.Algorithm != Oids.Pbkdf2) 549pbes2Params.EncryptionScheme.Algorithm)); 566algorithmIdentifier.Algorithm));
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (6)
307if (algorithmIdentifier.Algorithm == Oids.RsaPss) 319hashAlg = HashAlgorithmName.FromOid(pssParams.HashAlgorithm.Algorithm); 328switch (algorithmIdentifier.Algorithm) 353SR.Format(SR.Cryptography_UnknownKeyAlgorithm, algorithmIdentifier.Algorithm)); 362switch (algorithmIdentifier.Algorithm) 395$"Algorithm ID {algorithmIdentifier.Algorithm} was in the first switch, but not the second");
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
406oid = new Oid(spki.Algorithm.Algorithm, null);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (2)
263key = CreateKey(privateKeyInfo.PrivateKeyAlgorithm.Algorithm); 442string keyAlgorithm = publicKeyInfo.Algorithm.Algorithm;