bc-csharp
bc-csharp copied to clipboard
BigInteger Exception using BouncyCastle.NetCore in a Blazor WebAssembly project.
Steps to reproduce:
-
Create Blazor Web Assembly Project: dotnet new blazorwasm
-
Add package reference to project: <PackageReference Include="BouncyCastle.NetCore" Version="1.8.8" />
-
Add code to create a BigInteger: BigInteger b = new BigInteger("18446744073709551616");
-
build and run. dotnet build dotnet run
-
Attach to debug with break point. No perceivable exception occurs. execution just stops.
BouncyCastle.NetCore is not maintained by the official developers of BouncyCastle and is also quite behind the official versions. You could be luckier using the much more updated fork at https://www.nuget.org/packages/Portable.BouncyCastle/ .