bc-csharp
bc-csharp copied to clipboard
BouncyCastle.NET Cryptography Library (Mirror)
Why in the world would you do something like this? Is there a good reason or are you guys just trying to prevent people from having good random numbers? ###...
Is there any way to extend / create a instance of this class with my custom data ? - i cannot create a instance since it has a internal and...
Bouncy Castle encrypts with primary key while other tools such as GnuPG uses sub keys for encryption and primary key for certification and signing. When trying to decrypt a message...
Pkcs12Store Load repeated extension found: 2.5.29.14 Failed to read certificate password:"" [UAECCServer.zip](https://github.com/bcgit/bc-csharp/files/7813381/UAECCServer.zip)
``` var p7b = File.ReadAllBytes(path); var cmsSignedData = new Org.BouncyCastle.Cms.CmsSignedData(p7b); ``` System.InvalidCastException: Unable to cast object of type 'Org.BouncyCastle.Asn1.DerSequence' to type 'Org.BouncyCastle.Asn1.Asn1OctetString'. at Org.BouncyCastle.Cms.CmsSignedData..ctor(ContentInfo sigData) in /crypto/src/cms/CMSSignedData.cs:line 138 at Org.BouncyCastle.Cms.CmsSignedData..ctor(Byte[]...
Hi! We want to create a SignedCms (detached mode) for content of which we only have the hash available. Is it possible to instruct BouncyCastle (when generating the signature for...
Hi, Previously we were using version 1.8.5 and for the useless password we were passing **"".ToCharArray()** to **Pkcs12Store**. Now after upgrading to 1.8.9 I was getting an exception **password supplied...
I have a problem when verifying detached signature of empty file. private static bool VerifyDetachedSignature(byte[] fileRawBytes, string sign) { try { var signatureFileRawBytes = Convert.FromBase64String(sign); var cms = new CmsSignedData(new...
[https://docs.microsoft.com/en-us/dotnet/api/system.span-1?view=netcore-3.1](https://docs.microsoft.com/en-us/dotnet/api/system.span-1?view=netcore-3.1)
Sha3Digest class (namespace Org.BouncyCastle.Crypto.Digests) can provide the Hash function, but it is not the C# programing style. Most C# Hash classes inherit from class HashAlgorithm (namespace System.Security.Cryptography). By inheriting from...