Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ namespace System.Security.Cryptography.Tests
{
internal static partial class CompositeMLDsaTestHelpers
{
private static readonly CngAlgorithm s_compositeMLDsa = new CngAlgorithm("Composite-ML-DSA");

extension (CngAlgorithm)
{
internal static CngAlgorithm CompositeMLDsa => s_compositeMLDsa;
}

private const int NTE_NOT_SUPPORTED = unchecked((int)0x80090029);

internal static CompositeMLDsaCng ImportPublicKey(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ public sealed partial class CngAlgorithm : System.IEquatable<System.Security.Cry
{
public CngAlgorithm(string algorithm) { }
public string Algorithm { get { throw null; } }
[System.Diagnostics.CodeAnalysis.ExperimentalAttribute("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.CngAlgorithm CompositeMLDsa { get { throw null; } }
public static System.Security.Cryptography.CngAlgorithm ECDiffieHellman { get { throw null; } }
public static System.Security.Cryptography.CngAlgorithm ECDiffieHellmanP256 { get { throw null; } }
public static System.Security.Cryptography.CngAlgorithm ECDiffieHellmanP384 { get { throw null; } }
Expand Down Expand Up @@ -355,6 +357,8 @@ public sealed partial class CngAlgorithmGroup : System.IEquatable<System.Securit
{
public CngAlgorithmGroup(string algorithmGroup) { }
public string AlgorithmGroup { get { throw null; } }
[System.Diagnostics.CodeAnalysis.ExperimentalAttribute("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.CngAlgorithmGroup CompositeMLDsa { get { throw null; } }
public static System.Security.Cryptography.CngAlgorithmGroup DiffieHellman { get { throw null; } }
public static System.Security.Cryptography.CngAlgorithmGroup Dsa { get { throw null; } }
public static System.Security.Cryptography.CngAlgorithmGroup ECDiffieHellman { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ public static CngAlgorithm Sha512
/// A new <see cref="CngAlgorithm"/> object that specifies the Composite Module-Lattice-Based
/// Digital Signature Algorithm (Composite ML-DSA).
/// </value>
internal static CngAlgorithm CompositeMLDsa =>
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
public static CngAlgorithm CompositeMLDsa =>
field ??= new CngAlgorithm("Composite-ML-DSA"); // BCRYPT_COMPOSITE_MLDSA_ALGORITHM

private static CngAlgorithm? s_ecdh;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public static CngAlgorithmGroup Rsa
/// <value>
/// An object that specifies the Composite ML-DSA family of algorithms.
/// </value>
internal static CngAlgorithmGroup CompositeMLDsa =>
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
public static CngAlgorithmGroup CompositeMLDsa =>
field ??= new CngAlgorithmGroup("CompositeMLDSA"); // NCRYPT_COMPOSITE_MLDSA_ALGORITHM_GROUP

private static CngAlgorithmGroup? s_dh;
Expand Down
Loading