Skip to content
Discussion options

You must be logged in to vote

The instance members are not documented as thread-safe.

The full implementation of the returned object (which is only RSACng on Windows) is an OS component which does not document itself as thread-safe, so the only way we could document the class as thread-safe is if we instilled our own locking, which we don't do.

My personal belief, though not a recommendation you should depend on, is that the native implementations are thread-safe (assuming you don't parallelize the operation with Dispose), so it's "probably fine", but we (.NET) do not guarantee it, and wouldn't make any changes to our code in response to a data-corruption thread-safety bug report.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bartonjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants