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

DRAFT Pkcs7 nondetached #7054

Draft
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

daverodgman
Copy link
Contributor

@daverodgman daverodgman commented Feb 7, 2023

Capture @DemiMarie 's work on PKCS 7 non-detached signatures from #6672 in a standalone PR

Otherwise invalid data could be accepted.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
No change in behavior

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This adds more code, but the newer code is easier to understand.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
There must not be any.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
No change in behavior.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
MBEDTLS_ERR_BAD_INPUT_DATA indicates a bug in the caller, such as
passing NULL to an interface that doesn't accept it.  It should not be
used for an unsupported type of content.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This makes the SignedData available to callers.  Previously, it was
ignored.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
A CMS signature can have internal data.  Provide a function for
verifying this data, and check that it is absent when verifying
detached signatures.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
@daverodgman daverodgman mentioned this pull request Feb 7, 2023
3 tasks
@tom-cosgrove-arm tom-cosgrove-arm marked this pull request as draft June 9, 2023 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants