You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[X500DistinguishedName validation is stricter](cryptography/10.0/x500distinguishedname-validation.md)| Behavioral change | Preview 1 |
66
+
|[X509Certificate and PublicKey key parameters can be null](cryptography/10.0/x509-publickey-null.md)| Behavioral/source incompatible change | Preview 3 |
|[X500DistinguishedName validation is stricter](cryptography/10.0/x500distinguishedname-validation.md)| Behavioral change | Preview 1 |
84
-
|[X509Certificate and PublicKey key parameters can be null](cryptography/10.0/x509-publickey-null.md)| Behavioral/source incompatible change | Preview 3 |
Some methods and properties in the `[Experimental]` post-quantum cryptography (PQC) classes <xref:System.Security.Cryptography.MLDsa?displayProperty=fullName> and <xref:System.Security.Cryptography.SlhDsa?displayProperty=fullName> have been renamed. APIs that involve the `sk` value from their respective specifications now have `PrivateKey` in their names instead of `SecretKey`.
12
+
13
+
## Version introduced
14
+
15
+
.NET 10 RC 1
16
+
17
+
## Previous behavior
18
+
19
+
Previously, you could call methods like `ImportMLDsaSecretKey` and `ImportSlhDsaSecretKey`, and you could access properties like `SecretKeySizeInBytes`.
20
+
21
+
## New behavior
22
+
23
+
Starting in .NET 10 RC 1, you must call methods like `ImportMLDsaPrivateKey` or `ImportSlhDsaPrivateKey`, and access properties like `PrivateKeySizeInBytes`.
24
+
25
+
## Type of breaking change
26
+
27
+
This change can affect [source compatibility](../../categories.md#source-compatibility).
28
+
29
+
## Reason for change
30
+
31
+
The change was made to align with existing asymmetric cryptography types in .NET and with related members such as <xref:System.Security.Cryptography.MLDsa.ExportPkcs8PrivateKey>.
32
+
33
+
## Recommended action
34
+
35
+
Resolve any compile breaks from this change by replacing instances of `SecretKey` with `PrivateKey` in the called member names:
0 commit comments