Open WojciechNagorski opened 7 months ago
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
Why is BouncyCastle so big? (is inflated 😄) Currently, the DLL has over 8 GB and the entire Nuget 14.2 MB.![image](https://github.com/bcgit/bc-csharp/assets/17333903/9cbd5197-cbf2-4059-8075-c0c76581cdf5)
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](https://github.com/bcgit/bc-csharp/assets/17333903/17e6f746-ac0f-49fc-8c60-54d98dff86ae)