Skip to content

A PKCS7 SignedData can't be parsed #232

Description

@dallonxu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions