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