feat: implement mach-o signed certificate parsing #90
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@plusvic, created this PR to show what the deps will look like from
cryptographic-message-syntax
with the proper features disabled. Currently, I am using my branch at https://github.com/latonis/cryptography-rs/tree/cms-features as I am not sure when indygreg/cryptography-rs#21 will be approved and/or merged in.I dug into RustCrypto, but unfortunately they deprecated BER format decoding when they deprecated the
pkcs7
crate (see: https://docs.rs/pkcs7/latest/pkcs7/). As such, RustCrypto doesn't provide a mechanism for parsing the BER format signed data. The RFC spec for this (see https://datatracker.ietf.org/doc/html/rfc5652) allows for BER format, but it seems like Apple is the outlier here and predominantly using it.Without the ability to parse BER format, we lose the ability to parse Mach-O signature data