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