-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSACryptoServiceProvider.ExportParameters hangs on BWA #36806
Comments
Likely a mono issue? |
I'm having an issue with ExportParameters(true) as well. It takes an extremely long time to return, and when it finally does return the private parameters aren't there. Only Exponent and Modulus are populated. |
Blazor WebAssembly in .NET 5 does not support cryptography libraries. It will throw |
@davidfowl @mdh1418 Thanks for your comment. I understand that local cryptography in Blazor is a corner and rare use case. Also, it requires lots of computing resources. But I didn't find any notice or best practices about cryptographic API that does not support Blazor. This situation makes some confusion. If possible, even in the current version, this API should also throw the exception to prevent further trouble. |
For those of you interested in this topic, there is one piece of information I found. https://github.com/ebekker/FMRL/tree/master/BlazorX.WebCrypto |
Describe the bug
I tested a code which relies on RSACryptoServiceProvider.ExportParameters function in Blazor WebAssembly, but it hangs after the function called.
To Reproduce
I tested the below code in the SDK 3.1.300 (3.1.4 release).
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: