bc-csharp
bc-csharp copied to clipboard
BouncyCastle.NET Cryptography Library (Mirror)
help
Fixed the problem that the sm2 certificate with only base64 content cannot be parsed. Fixed MemoryStream is not automatically released.
The Java version includes several different ECIES classes. Why doesn't the C# version have them? Here's a link to the Java code for reference: [Java ECIES Code](https://github.com/bcgit/bc-java/blob/4a10c27a03bddd96cf0a3663564d0851425b27b9/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/IESCipher.java#L597). What could be...
Hello, I encrypted a file using a .Net 8.0 F# program that references BouncyCastle.Cryptography version 2.4.0. When I try to decrypt it using Kleopatra, I get these messages: ``` gpg:...
## Describe your changes Use Span and marshalling when available to avoid copies when dealing with bytes[] and ulong[] arrays in Argon2. Followup of https://github.com/bcgit/bc-csharp/pull/559 ## How has this been...
## Describe your changes Added multithreading support for Argon2. Followup of https://github.com/bcgit/bc-csharp/pull/559 ## How has this been tested? Using the tests that were already available for Argon2. ## Checklist before...
## Describe your changes This change represents an initial/example contribution towards #550. It adds a reference to [System.Memory](https://www.nuget.org/packages/System.Memory) and uses it to deduplicate a number of internal code paths. The...
Openssl signatures are not octet aligned, and thus signature verification fails for signing requests, etc. Is there a reason that octet aligned signatures are enforced?
This PR brings (preliminary) support for hybrid post-quantum + elliptic curve KEMs and signatures. The hybrid serialization formats broadly follow the one used in [oqs-provider](https://github.com/open-quantum-safe/oqs-provider). Things that would still need...
**Describe the Bug** I'm tracing my application for increased CPU usage after switching from openssl to bc-csharp and my profiler shows a lot of time is spent in [`AbstractTlsContext.get_SecurityParameters()`](https://github.com/bcgit/bc-csharp/blob/685cdb67590ae9af250326c0eb086f97ad5cd60f/crypto/src/tls/AbstractTlsContext.cs#L109) I'm...