1. Home
  2. /
  3. Download
  4. /
  5. Download Bouncy Castle C# .NET

Download Bouncy Castle for C# .NET

Welcome to the download page for Bouncy Castle C# .NET. In addition to the available access options, including through NuGet and direct download, you will find searchable release notes and links to API and other documentation.

Bouncy Castle C#
hero-sub-2

GitHub

Access the Bouncy Castle APIs C# .NET package on GitHub, where you can also report issues, join discussions, and contribute to the software.

Documentation 

Explore the Bouncy Castle for C# .NET and C# .NET FIPS documentation online for concise guidance and examples.

Join the discussion

You can ask questions and learn from specialists in the Bouncy Castle C# .NET forum on GitHub Discussions. We highly appreciate and value your input.

Report an issue

If you encounter any issues that require attention, feel free to report them in our GitHub repository.

Release notes

Find out detailed information about the latest release and search in older release notes.

Beta releases

The current working betas, when available, for the next release C# .NET can be found here. If you need a beta to be made available please ask by emailing feedback-crypto@bouncycastle.org.

Donate to support the Bouncy Castle APIs

Supporting Bouncy Castle is now a substantial effort, the Java API is now over 300,000 lines, the C# one well past 140,000.

Bouncy Castle C# .NET Downloads

Except where otherwise stated, this software is distributed under the regular Bouncy Castle license. For full details of other licenses involved, see Third party licenses

Distribution Files

The NuGet distribution collects all versions of BC C# .NET into one bundle.

Official NuGet Archive BouncyCastle.Cryptography 2.5.0

Specific Bouncy Castle C# .NET release for .NET 6.0.

  Binary API Documentation
.NET 6.0 BouncyCastle.Cryptography.dll BouncyCastle.Cryptography.xml

Specific Bouncy Castle C# .NET release for .NET 4.61.

  Binary  API Documentation
.NET 4.6.1 BouncyCastle.Cryptography.dll BouncyCastle.Cryptography.xml

Specific Bouncy Castle .NET C# release for .NET 2.0.

  Binary API Documentation
.NET 2.0 BouncyCastle.Cryptography.dll BouncyCastle.Cryptography.xml
Checksums

To confirm the integrity of the distributions, checksums are available:

Download Checksums

Release notes

Find out detailed information about the latest Bouncy Castle C# .NET releases and search in older release notes.  

Release 2.5.0
1 December, 2024
Defects Fixed Fixed tag for unprotectedAttrs field of Asn1.Cms.EncryptedData (regression in 2.4.0). X509Name: Fixed whitespace escaping on output, and Name...

Defects Fixed

  • Fixed tag for unprotectedAttrs field of Asn1.Cms.EncryptedData (regression in 2.4.0).
  • X509Name: Fixed whitespace escaping on output, and NameAtBirth lookup.

Additional Features and Functionality

  • Added support for modified UTF-8 in JKS.
  • (D)TLS: Removed redundant verification of self-generated RSA signatures.
  • Added support for the PQC algorithms ML-DSA (including pre-hash), ML-KEM, and SLH-DSA (including pre-hash)
  • Added ParametersWithContext class to support signature contexts for ML-DSA and SLH-DSA.
  • Added support for Argon2.
  • TLS: Added draft ML-KEM support (draft-connolly-tls-mlkem-key-agreement-03).
  • Ascon: Implemented latest algorithms: AsconHash256, AsconXof128, AsconCXof128, AsconAead128; deprecated prototypes: AsconDigest, AsconXof, AsconEngine.

Additional Notes

  • To avoid potential intellectual property issues, Kyber (precursor of ML-KEM) was completely removed. Since that already created a backward compatibility break, we took the opportunity to also remove SIKE.
  • See the (cumulative) list of GitHub pull requests that we have accepted at bcgit/bc-csharp.