1 write to Algorithm
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (1)
65
Algorithm
= algorithm;
49 references to Algorithm
System.Security.Cryptography (43)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (23)
122
Helpers.ThrowIfDestinationWrongLength(destination,
Algorithm
.SignatureSizeInBytes);
170
byte[] destination = new byte[
Algorithm
.SignatureSizeInBytes];
215
if (signature.Length !=
Algorithm
.SignatureSizeInBytes)
305
Helpers.ThrowIfDestinationWrongLength(destination,
Algorithm
.SignatureSizeInBytes);
329
Algorithm
.Name,
373
byte[] destination = new byte[
Algorithm
.SignatureSizeInBytes];
433
signature.Length !=
Algorithm
.SignatureSizeInBytes)
537
byte[] destination = new byte[
Algorithm
.SignatureSizeInBytes];
577
if (externalMu.Length !=
Algorithm
.MuSizeInBytes)
580
Helpers.ThrowIfDestinationWrongLength(destination,
Algorithm
.SignatureSizeInBytes);
634
if (externalMu.Length !=
Algorithm
.MuSizeInBytes || signature.Length !=
Algorithm
.SignatureSizeInBytes)
785
Algorithm
.PrivateSeedSizeInBytes;
1187
byte[] destination = new byte[
Algorithm
.PublicKeySizeInBytes];
1212
Helpers.ThrowIfDestinationWrongLength(destination,
Algorithm
.PublicKeySizeInBytes);
1234
byte[] destination = new byte[
Algorithm
.PrivateKeySizeInBytes];
1254
Helpers.ThrowIfDestinationWrongLength(destination,
Algorithm
.PrivateKeySizeInBytes);
1274
byte[] destination = new byte[
Algorithm
.PrivateSeedSizeInBytes];
1294
Helpers.ThrowIfDestinationWrongLength(destination,
Algorithm
.PrivateSeedSizeInBytes);
2048
int publicKeySizeInBytes =
Algorithm
.PublicKeySizeInBytes;
2066
writer.WriteObjectIdentifier(
Algorithm
.Oid);
2145
int size =
Algorithm
.PrivateKeySizeInBytes + 32;
2334
insufficientCollisionResistance = hashLambda <
Algorithm
.LambdaCollisionStrength;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (6)
104
ExportKey(CngKeyBlobFormat.PQDsaPublicBlob,
Algorithm
.PublicKeySizeInBytes, destination);
143
Algorithm
,
148
ExportKey(CngKeyBlobFormat.PQDsaPrivateSeedBlob,
Algorithm
.PrivateSeedSizeInBytes, destination);
204
Algorithm
,
209
ExportKey(CngKeyBlobFormat.PQDsaPrivateBlob,
Algorithm
.PrivateKeySizeInBytes, destination);
456
string expectedParameterSet = PqcBlobHelpers.GetMLDsaParameterSet(
Algorithm
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (1)
31
MLDsaAlgorithm alg = key.
Algorithm
;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (4)
178
Algorithm
.PublicKeySizeInBytes,
190
Algorithm
.PrivateKeySizeInBytes,
203
Algorithm
.PrivateSeedSizeInBytes,
239
string expectedParameterSet = PqcBlobHelpers.GetMLDsaParameterSet(
Algorithm
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaPkcs8.cs (3)
20
Algorithm = dsa.
Algorithm
.Oid,
31
int seedSize = dsa.
Algorithm
.PrivateSeedSizeInBytes;
40
int privateKeySize = dsa.
Algorithm
.PrivateKeySizeInBytes;
System\Security\Cryptography\X509Certificates\MLDsaX509SignatureGenerator.cs (2)
31
writer.WriteObjectIdentifier(_key.
Algorithm
.Oid);
51
Oid oid = new Oid(_key.
Algorithm
.Oid, null);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
962
if (publicKey.
Algorithm
!= privateKey.
Algorithm
)
967
using (CryptoPoolLease pk1 = CryptoPoolLease.Rent(publicKey.
Algorithm
.PublicKeySizeInBytes, skipClear: true))
968
using (CryptoPoolLease pk2 = CryptoPoolLease.Rent(publicKey.
Algorithm
.PublicKeySizeInBytes, skipClear: true))
System.Security.Cryptography.Cose (4)
System\Security\Cryptography\Cose\CoseKey.cs (4)
64
Algorithm = GetMLDsaAlgorithm(key.
Algorithm
);
106
=> key.
Algorithm
.Name == expected.Name ? new CoseKey(key) : throw new CryptographicException(SR.Format(SR.Sign1UnknownCoseAlgorithm, untrustedAlgorithm));
182
return _mldsaKey!.
Algorithm
.SignatureSizeInBytes;
205
Span<byte> mldsaSignature = destination.Slice(0, _mldsaKey.
Algorithm
.SignatureSizeInBytes);
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\CmsSignature.MLDsa.cs (2)
60
if (publicKey.
Algorithm
!= _parameterSet)
102
byte[] signature = new byte[signingKey.
Algorithm
.SignatureSizeInBytes];