Commit a9a37e8
Fix PrivateKeyStatus ordering and make unsupported flag volatile
Access MlDsaPrivateKey before checking _mlDsaPrivateKeyUnsupported so
the flag is set during initialization. Previously, first access would
return DoesNotExist instead of Unknown on unsupported platforms.
Make _mlDsaPrivateKeyUnsupported volatile for correct cross-thread
visibility, consistent with the other initialization flags.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 26d94db commit a9a37e8
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
288 | | - | |
| 290 | + | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| |||
0 commit comments