Skip to content

Commit 0338543

Browse files
[release/10.0] Move MLDsa Experimental to appropriate members (#119515)
* Move MLDsa Experimental to appropriate members Not experimental: * MLDsaAlgorithm (whole type) * MLDsa (class name) * MLDsa.GenerateKey * MLDsa.ImportMLDsaPublicKey * MLDsa.ImportMLDsaPrivateKey * MLDsa.ImportMLDsaPrivateSeed * MLDsa.ExportMLDsaPublicKey * MLDsa.ExportMLDsaPrivateKey * MLDsa.ExportMLDsaPrivateSeed * MLDsa.SignData * MLDsa.VerifyData * Any *Core method for the above Experimental: * IETF Formats * MLDsa.ImportFromPem * MLDsa.ImportFromEncryptedPem * MLDsa.ImportPkcs8PrivateKey * MLDsa.ImportEncryptedPkcs8PrivateKey * MLDsa.ImportSubjectPublicKeyInfo * MLDsa.ExportPkcs8PrivateKey * MLDsa.ExportPkcs8PrivateKeyPem * MLDsa.ExportEncryptedPkcs8PrivateKey * MLDsa.ExportEncryptedPkcs8PrivateKeyPem * MLDsa.ExportSubjectPublicKeyInfo * MLDsa.ExportSubjectPublicKeyInfoPem * And any *Core methods powering them * Unsure we have the right shape * MLDsa.SignPreHash * MLDsa.VerifyPreHash * MLDsa.SignMu * MLDsa.VerifyMu * And any *Core methods powering them * Missed one * Second ring --------- Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
1 parent 8e47552 commit 0338543

File tree

8 files changed

+87
-21
lines changed

8 files changed

+87
-21
lines changed

src/libraries/Common/src/System/Security/Cryptography/MLDsa.cs

Lines changed: 42 additions & 1 deletion
Large diffs are not rendered by default.

src/libraries/Common/src/System/Security/Cryptography/MLDsaAlgorithm.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace System.Security.Cryptography
1010
/// Represents a specific algorithm within the ML-DSA family.
1111
/// </summary>
1212
[DebuggerDisplay("{Name,nq}")]
13-
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
1413
public sealed class MLDsaAlgorithm : IEquatable<MLDsaAlgorithm>
1514
{
1615
/// <summary>

src/libraries/Common/src/System/Security/Cryptography/MLDsaCng.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace System.Security.Cryptography
2121
/// cryptographic libraries.
2222
/// </para>
2323
/// </remarks>
24-
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
2524
public sealed partial class MLDsaCng : MLDsa
2625
{
2726
private CngKey _key;

src/libraries/System.Security.Cryptography/ref/System.Security.Cryptography.cs

Lines changed: 45 additions & 12 deletions
Large diffs are not rendered by default.

src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngAlgorithm.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ public static CngAlgorithm Sha512
205205
/// A new <see cref="CngAlgorithm"/> object that specifies the Module-Lattice-Based Digital Signature
206206
/// Algorithm (ML-DSA).
207207
/// </value>
208-
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
209208
public static CngAlgorithm MLDsa => field ??= new CngAlgorithm("ML-DSA"); // BCRYPT_MLDSA_ALGORITHM
210209

211210
/// <summary>

src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngAlgorithmGroup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public static CngAlgorithmGroup Rsa
133133
/// <value>
134134
/// An object that specifies the ML-DSA family of algorithms.
135135
/// </value>
136-
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
137136
public static CngAlgorithmGroup MLDsa =>
138137
field ??= new CngAlgorithmGroup("MLDSA"); // NCRYPT_MLDSA_ALGORITHM_GROUP
139138

src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngKeyBlobFormat.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ public static CngKeyBlobFormat GenericPublicBlob
145145
/// <remarks>
146146
/// The value identified by this blob format is &quot;PQDSAPUBLICBLOB&quot;.
147147
/// </remarks>
148-
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
149148
public static CngKeyBlobFormat PQDsaPublicBlob =>
150149
field ??= new CngKeyBlobFormat("PQDSAPUBLICBLOB"); // BCRYPT_PQDSA_PUBLIC_BLOB
151150

@@ -160,7 +159,6 @@ public static CngKeyBlobFormat GenericPublicBlob
160159
/// <remarks>
161160
/// The value identified by this blob format is &quot;PQDSAPRIVATEBLOB&quot;.
162161
/// </remarks>
163-
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
164162
public static CngKeyBlobFormat PQDsaPrivateBlob =>
165163
field ??= new CngKeyBlobFormat("PQDSAPRIVATEBLOB"); // BCRYPT_PQDSA_PRIVATE_BLOB
166164

@@ -175,7 +173,6 @@ public static CngKeyBlobFormat GenericPublicBlob
175173
/// <remarks>
176174
/// The value identified by this blob format is &quot;PQDSAPRIVATESEEDBLOB&quot;.
177175
/// </remarks>
178-
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
179176
public static CngKeyBlobFormat PQDsaPrivateSeedBlob =>
180177
field ??= new CngKeyBlobFormat("PQDSAPRIVATESEEDBLOB"); // BCRYPT_PQDSA_PRIVATE_SEED_BLOB
181178

src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/MLDsaOpenSsl.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ namespace System.Security.Cryptography
2020
/// cryptographic libraries.
2121
/// </para>
2222
/// </remarks>
23-
[Experimental(Experimentals.PostQuantumCryptographyDiagId, UrlFormat = Experimentals.SharedUrlFormat)]
2423
public sealed partial class MLDsaOpenSsl : MLDsa
2524
{
2625
private SafeEvpPKeyHandle _key;

0 commit comments

Comments
 (0)