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

Size of BouncyCastle library

Open WojciechNagorski opened this issue 1 year ago • 3 comments

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

WojciechNagorski avatar Dec 11 '23 12:12 WojciechNagorski

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

harrison314 avatar Dec 16 '23 07:12 harrison314

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?

jstedfast avatar Feb 02 '24 22:02 jstedfast

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

harrison314 avatar Feb 03 '24 08:02 harrison314