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
Thread safety for ML-DSA key init, null guards in X509 adapter path
- Make _mlDsaPrivateKeyInitialized and _mlDsaPublicKeyInitialized volatile
to ensure correct publication across threads in double-checked locking
- Add IDX10725 for X509 certs where key extraction fails (unsupported
platform or unrecognised key type)
- Guard null PrivateKey before passing to InitializeUsingRsa to prevent
deferred NRE when X509 cert has no private key
- Register IDX10725 in InternalAPI.Unshipped.txt
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/Microsoft.IdentityModel.Tokens/InternalAPI.Unshipped.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -122,3 +122,4 @@ const Microsoft.IdentityModel.Tokens.LogMessages.IDX10721 = "IDX10721: Unable to
122
122
const Microsoft.IdentityModel.Tokens.LogMessages.IDX10722 = "IDX10722: The AKP JsonWebKey (alg: '{0}') has inconsistent key material. The 'pub' parameter does not match the public key derived from 'priv'." -> string
123
123
const Microsoft.IdentityModel.Tokens.LogMessages.IDX10723 = "IDX10723: Unable to extract the private key from the X.509 certificate for algorithm '{0}' (Key: '{1}'). Private key extraction may not be supported on this platform." -> string
124
124
const Microsoft.IdentityModel.Tokens.LogMessages.IDX10724 = "IDX10724: Unable to compute a JWK thumbprint, public key extraction from the X.509 certificate is not supported on this platform (Key: '{0}')." -> string
125
+
const Microsoft.IdentityModel.Tokens.LogMessages.IDX10725 = "IDX10725: Unable to create a SignatureProvider for algorithm '{0}' (Key: '{1}'). The X.509 certificate key could not be extracted. This may indicate the platform does not support the certificate's key type." -> string
Copy file name to clipboardExpand all lines: src/Microsoft.IdentityModel.Tokens/LogMessages.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -281,6 +281,7 @@ internal static class LogMessages
281
281
publicconststringIDX10722="IDX10722: The AKP JsonWebKey (alg: '{0}') has inconsistent key material. The 'pub' parameter does not match the public key derived from 'priv'.";
282
282
publicconststringIDX10723="IDX10723: Unable to extract the private key from the X.509 certificate for algorithm '{0}' (Key: '{1}'). Private key extraction may not be supported on this platform.";
283
283
publicconststringIDX10724="IDX10724: Unable to compute a JWK thumbprint, public key extraction from the X.509 certificate is not supported on this platform (Key: '{0}').";
284
+
publicconststringIDX10725="IDX10725: Unable to create a SignatureProvider for algorithm '{0}' (Key: '{1}'). The X.509 certificate key could not be extracted. This may indicate the platform does not support the certificate's key type.";
0 commit comments