bc-csharp
bc-csharp copied to clipboard
BouncyCastle.NET Cryptography Library (Mirror)
https://github.com/bcgit/bc-csharp/issues/339 For example, if I have a pointer instead of byte array, I would like to create a span and use it as AES KEY instead of having to create...
Unfortunately [DotNetUtilities ](https://github.com/bcgit/bc-csharp/blob/master/crypto/src/security/DotNetUtilities.cs) only supports conversion to RSA and DSA. It would be great if EC key support could be added. I'm trying to write my own mapping of `ECPublicKeyParameters`...
When using the C# library I have come across an issue when doing single pass sign and encrypt on large files. When digging into the decryption/verification I find that it...
I encountered this issue in the nuget package (1.8.3), and spent hours heading in the wrong direction trying to fix it (which I finally did). Figured I'd post here so...
Exception while trying to extract OCSPBasic data from the SignedData.crls. RFC 5652 (https://datatracker.ietf.org/doc/html/rfc5652#page-36) defines the crls structure as: RevocationInfoChoices ::= SET OF RevocationInfoChoice RevocationInfoChoice ::= CHOICE { crl CertificateList, other...
I got a problem with decrypting `CmsEnvelopedData` that was encrypted with the bouncy castle library in JAVA. The error occurs when calling `var decryptedData = recipient.GetContent(privKey);` where `recipient` is of...
Why can't I find an instance to add authorization information access to the certificate?
Hello, I am trying to decrypt a PGP message using a private key, but when using the function `new PgpSecretKeyRingBundle(keyStream);` I am getting the exception: `unknown PGP public key algorithm...
[https://github.com/bcgit/bc-csharp/blob/master/crypto/src/crypto/modes/GCMBlockCipher.cs](https://github.com/bcgit/bc-csharp/blob/master/crypto/src/crypto/modes/GCMBlockCipher.cs) ``` c# if (forEncryption) { if (nonce != null && Arrays.AreEqual(nonce, newNonce)) { if (keyParam == null) { throw new ArgumentException("cannot reuse nonce for GCM encryption"); } if (lastKey...
Also implements broader - but still incomplete - support for S expression keys in non-canonical format. The endianness of Curve25519 keys in ECDH is a mess. Unlike all other ECDH...