7 writes to Algorithm
System.Security.Cryptography (7)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs (1)
65val.Algorithm = Algorithm;
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
202decoded.Algorithm = sequenceReader.ReadObjectIdentifier();
src\libraries\Common\src\System\Security\Cryptography\MLDsaPkcs8.cs (1)
20Algorithm = dsa.Algorithm.Oid,
src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (1)
20Algorithm = kem.Algorithm.Oid,
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (3)
75HashAlgorithm = new ValueAlgorithmIdentifierAsn { Algorithm = digestOid }, 76MaskGenAlgorithm = new ValueAlgorithmIdentifierAsn { Algorithm = Oids.Mgf1 }, 95Algorithm = Oids.RsaPss,
39 references to Algorithm
System.Security.Cryptography (39)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs (2)
82if (Algorithm != other.Algorithm)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
137writer.WriteObjectIdentifier(Algorithm);
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (8)
18if (MaskGenAlgorithm.Algorithm != Oids.Mgf1) 22MaskGenAlgorithm.Algorithm); 35if (mgfParams.Algorithm != HashAlgorithm.Algorithm) 40mgfParams.Algorithm, 41HashAlgorithm.Algorithm)); 48saltSize = Helpers.HashOidToByteLength(HashAlgorithm.Algorithm); 57HashAlgorithm.Algorithm));
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (1)
1915CompositeMLDsaAlgorithm? algorithm = CompositeMLDsaAlgorithm.GetAlgorithmFromOid(identifier.Algorithm);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (4)
37if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 66if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 88if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0) 114if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0)
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (2)
2246MLDsaAlgorithm algorithm = MLDsaAlgorithm.GetMLDsaAlgorithmFromOid(identifier.Algorithm) ?? 2248SR.Format(SR.Cryptography_UnknownAlgorithmIdentifier, identifier.Algorithm));
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (1)
1679MLKemAlgorithm? algorithm = MLKemAlgorithm.FromOid(identifier.Algorithm);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (10)
110algorithmIdentifier.Algorithm)); 121switch (algorithmIdentifier.Algorithm) 173algorithmIdentifier.Algorithm)); 185throw AlgorithmKdfRequiresChars(algorithmIdentifier.Algorithm); 550if (pbes2Params.KeyDerivationFunc.Algorithm != Oids.Pbkdf2) 555pbes2Params.EncryptionScheme.Algorithm)); 600string? algId = encryptionScheme.Algorithm; 780pbkdf2Params.Salt.OtherSource.Algorithm)); 789HashAlgorithmName prf = pbkdf2Params.Prf.Algorithm switch 798pbkdf2Params.Prf.Algorithm)),
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (1)
1986SlhDsaAlgorithm? algorithm = SlhDsaAlgorithm.GetAlgorithmFromOid(identifier.Algorithm);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
592if (pbes2Params.KeyDerivationFunc.Algorithm != Oids.Pbkdf2) 597pbes2Params.EncryptionScheme.Algorithm));
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (6)
315if (algorithmIdentifier.Algorithm == Oids.RsaPss) 328hashAlg = HashAlgorithmName.FromOid(pssParams.HashAlgorithm.Algorithm); 337switch (algorithmIdentifier.Algorithm) 365SR.Format(SR.Cryptography_UnknownKeyAlgorithm, algorithmIdentifier.Algorithm)); 374switch (algorithmIdentifier.Algorithm) 416$"Algorithm ID {algorithmIdentifier.Algorithm} was in the first switch, but not the second");
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
492oid = new Oid(spki.Algorithm.Algorithm, null);