-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
microsoft seems to use a different EncapsulatedContentInfo struct #61
Comments
This seems to fix the issue without breaking the existing tests. @XAMPPRocky is this a sensible change? diff --git a/standards/cms/src/lib.rs b/standards/cms/src/lib.rs
index 55d006f..14bddab 100644
--- a/standards/cms/src/lib.rs
+++ b/standards/cms/src/lib.rs
@@ -208,7 +208,7 @@ pub struct OtherRevocationInfoFormat {
#[derive(AsnType, Clone, Debug, Decode, Encode, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct EncapsulatedContentInfo {
pub content_type: ContentType,
- #[rasn(tag(explicit(0)))]
+ #[rasn(tag(context, 0))]
pub content: Option<OctetString>,
} |
Thank you for your issue! Right now I don't think I would want to make the change, since the IETF RFC is what should be followed, rather than Microsoft's undocumented formats. I would prefer to add a seperate type for Microsoft types over having spec non-compliant types. |
from RFC5652 it is acknowledged that cms breaks compatibility with pkcs7, which is also an IETF RFC.
|
@dvc94ch Thanks for the info, I think I'd like to go with having a separate type for PKCS#7 |
Closing as resolved in #62 |
microsoft msix and appx packages contain a
CodeIntegrity.cat
andAppxSignature.p7x
file, which while undocumented seems to be cms encoded SignedData. however it seems like it's not quite spec compliant and maybe has an extra field or something.replacing content with Any works.
The text was updated successfully, but these errors were encountered: