bcgit / bc-csharp

BouncyCastle.NET Cryptography Library (Mirror)
https://www.bouncycastle.org/csharp
MIT License
1.67k stars 556 forks source link

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

Open dale-personal opened 3 years ago

dale-personal commented 3 years ago

Steps to reproduce:

  1. Create Blazor Web Assembly Project: dotnet new blazorwasm

  2. Add package reference to project:

  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.

lscorcia commented 3 years ago

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