Skip to content

Size of BouncyCastle library #504

Closed
Closed

Description

@WojciechNagorski

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 sshnet/SSH.NET#1271
However, the size of the BouncyCastle DLL is out of proportion to SSH.NET
image

Activity

  1. harrison314 commented on Dec 16, 2023

    @harrison314
    Contributor

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

  2. jstedfast commented on Feb 2, 2024

    @jstedfast
    Contributor

    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?

  3. peterdettman commented on Sep 3, 2026

    @peterdettman
    Collaborator

    The problem was mainly because of PQC code, some of which has been removed (and more will go), some shrunk. What's left should be better trimmable now if that's helpful. I am hoping to split the current mono-package up, perhaps for a 3.0 version, but it is a significant change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions