9 writes to Algorithm
System.Security.Cryptography (9)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
96decoded.Algorithm = sequenceReader.ReadObjectIdentifier();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (1)
259Algorithm = AlgorithmId.Value!,
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
840Algorithm = PublicKey.Oid!.Value!,
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
174Algorithm = new AlgorithmIdentifierAsn { Algorithm = Oids.Dsa, Parameters = encodedParameters },
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
55spki.Algorithm = new AlgorithmIdentifierAsn { Algorithm = PublicKey.Oid!.Value!, Parameters = PublicKey.EncodedParameters.RawData };
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
281Algorithm = _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,
42 references to Algorithm
System.Security.Cryptography (42)
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 (2)
829ParameterSetInfo info = ParameterSetInfo.GetParameterSetInfoFromOid(spki.Algorithm.Algorithm); 880ParameterSetInfo info = ParameterSetInfo.GetParameterSetInfoFromOid(pki.PrivateKeyAlgorithm.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)
90new Oid(privateKeyInfo.PrivateKeyAlgorithm.Algorithm, null),
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)
302if (algorithmIdentifier.Algorithm == Oids.RsaPss) 314hashAlg = HashAlgorithmName.FromOid(pssParams.HashAlgorithm.Algorithm); 323switch (algorithmIdentifier.Algorithm) 343SR.Format(SR.Cryptography_UnknownKeyAlgorithm, algorithmIdentifier.Algorithm)); 352switch (algorithmIdentifier.Algorithm) 376$"Algorithm ID {algorithmIdentifier.Algorithm} was in the first switch, but not the second");
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
338oid = new Oid(spki.Algorithm.Algorithm, null);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (2)
263key = CreateKey(privateKeyInfo.PrivateKeyAlgorithm.Algorithm); 442string keyAlgorithm = publicKeyInfo.Algorithm.Algorithm;