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