bcgit / bc-csharp

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

Size of BouncyCastle library #504

Open WojciechNagorski opened 7 months ago

WojciechNagorski commented 7 months ago

Why is BouncyCastle so big? (is inflated 😄) Currently, the DLL has over 8 GB and the entire Nuget 14.2 MB. image

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 image

harrison314 commented 7 months ago

A large part of BouncyCastle's volume is occupied by data for post-quantum cryptography. Then some data for elliptic curves.

jstedfast commented 5 months ago

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?

harrison314 commented 5 months ago

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