bc-csharp icon indicating copy to clipboard operation
bc-csharp copied to clipboard

A PKCS7 SignedData can't be parsed

Open dallonxu opened this issue 4 years ago • 1 comments

I have a pkcs7 SignedData(see my attachment), I want to validated it by Bouncy Castle. But at first, the data can't parsed by new CmsSignedData(byte[] sigBlock) or new CmsSignedDataParser(byte[] sigBlock):

byte[] sigBlock = File.ReadAllBytes("SignedData.bin.txt");
var signedData = new CmsSignedData(sigBlock);
//or 
var signedDataParser = new CmsSignedDataParser(sigBlock);

By the way, there was a similar issue in bc-java, but it had been fixed. Or, is there any other way to validate this real PKCS7 message? SignedData.bin.txt

dallonxu avatar Mar 20 '20 07:03 dallonxu

I used the latest version 1.8.6.

dallonxu avatar Mar 20 '20 07:03 dallonxu