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