Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support zero or multiple signerInfos #2

Open
wants to merge 5 commits into
base: upstream-pkcs7-rc1
Choose a base branch
from

Conversation

daxtens
Copy link

@daxtens daxtens commented Sep 2, 2020

Hi Nayna,

This supports PKCS#7 signedData messages that have zero or multiple signerInfos.

The multiple signerInfo changes are straightforward, the zero signerInfo ones are more complex. Let me know what you think. Supporting zero signerInfos does involve changing the API - I just don't know how to indicate that the signerInfo is not present otherwise. But I'm open to ideas!!

I'll also review the comments on your PR in the ARMmbed/mbedtls repo and design some tests (and review my code) to make them happy. It'll take me a few days to get to it though. I also want to look at a better way of verifying with multiple signerInfos than just iterating through each of them - I've put that in a comment and I'll work on that later also.

Kind regards,
Daniel

…tive

Not important either way.

Signed-off-by: Daniel Axtens <[email protected]>
RFC s 9.1:

        o    signerInfos is a collection of per-signer
             information. There may be any number of elements in the
             collection, including zero.

Signed-off-by: Daniel Axtens <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant