bc-csharp icon indicating copy to clipboard operation
bc-csharp copied to clipboard

BigInteger Exception using BouncyCastle.NetCore in a Blazor WebAssembly project.

Open dale-personal opened this issue 4 years ago • 1 comments

Steps to reproduce:

  1. Create Blazor Web Assembly Project: dotnet new blazorwasm

  2. Add package reference to project: <PackageReference Include="BouncyCastle.NetCore" Version="1.8.8" />

  3. Add code to create a BigInteger: BigInteger b = new BigInteger("18446744073709551616");

  4. build and run. dotnet build dotnet run

  5. Attach to debug with break point. No perceivable exception occurs. execution just stops.

dale-personal avatar May 13 '21 21:05 dale-personal

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/ .

lscorcia avatar Aug 12 '21 16:08 lscorcia