bc-csharp
bc-csharp copied to clipboard
BouncyCastle.NET Cryptography Library (Mirror)
## Describe your changes Ensure all obsoleted base code is properly marked. Many exception classes are implementing functions marked [Obsolete] in net8+. Use a conditional to molly-guard [Obsolete] attribution of...
## Describe your changes Improve interoperability by adding, fixing, and testing following net platforms: * net461 * net462 * net47 * net471 * net472 * net48 * net481 * netstandard2.0...
**Is your feature request related to a problem or specific use case? Please describe.** Currently, the nuget package is built for net461. Because of this, some ECDsa support is not...
How to change ja3 for http/2.0 I tried to change ja3 in http/2.0, but it was unsuccessful. Are there any successful cases?
## Describe your changes There are a number of APIs in BouncyCastle that are conditionally enabled (such as APIs that make use of `ReadOnlySpan`) when `#if NETSTANDARD2_1_OR_GREATER` evaluates to `true`....
**Describe the Bug** The saved private key cannot be read by library and not correctly parsed by asn1 parsers **To Reproduce** ```csharp var generator = GeneratorUtilities.GetKeyPairGenerator("ECGOST3410"); generator.Init(new ECKeyGenerationParameters(CryptoProObjectIdentifiers.GostR3410x2001CryptoProB, new SecureRandom()));...
**Is your feature request related to a problem or specific use case? Please describe.** When writing certificate to PKCS12 format we successfully used solution described in [discussion](https://github.com/bcgit/bc-csharp/discussions/372): `SetKeyAlgorithm(NistObjectIdentifiers.IdAes256Cbc, PkcsObjectIdentifiers.IdHmacWithSha256)` But...
## Describe your changes I made modifications that allow you to create a `HashMLDsaSigner` that can be used to sign an existing hash. For proper functionality, it is necessary to...
The current zlib implementation is "mostly" fine, but some edge cases are not simulated properly. This commit effectively puts it to parity with the C++ version, and allows this implementation...
## Describe your changes ## How has this been tested? ## Checklist before requesting a review - [x] I have performed a self-review of my code - [ ] I...