bc-csharp
bc-csharp copied to clipboard
Size of BouncyCastle library
Why is BouncyCastle so big? (is inflated 😄) Currently, the DLL has over 8 GB and the entire Nuget 14.2 MB.
Background
Currently, SSH.NET uses source code copied from BouncyCastle. We are considering using the official Nuget of this library which has many benefits for SSH.NET. More details https://github.com/sshnet/SSH.NET/issues/1271
However, the size of the BouncyCastle DLL is out of proportion to SSH.NET
A large part of BouncyCastle's volume is occupied by data for post-quantum cryptography. Then some data for elliptic curves.
At one point, the BouncyCastle.Crypto.dll (before the migration to dotnet core), it also seemed to contain Unit Test data. Is that still the case?
Not, test data is in separate folder https://github.com/bcgit/bc-csharp/tree/master/crypto/test/data and is not included in BouncyCastle.Crypto https://github.com/bcgit/bc-csharp/blob/master/crypto/src/BouncyCastle.Crypto.csproj#L85