rpkimancer.cms module¶
Classes implementing CMS ASN.1 types.
- class rpkimancer.cms.ContentInfo(content)¶
Bases:
Interface
,Generic
[CT
]CMS ASN.1 ContentInfo type - RFC5911.
- Parameters:
content (CT) –
- content_syntax: ASN1Obj = <ContentInfo (SEQUENCE)>¶
- classmethod register_econtent_type(content_type, econtent_type)¶
Add CONTENT-TYPE instance to eContentType constraint set.
- Parameters:
content_type (Type[CT]) –
econtent_type (Type[ECT]) –
- Return type:
None
- class rpkimancer.cms.ContentTypeIdDescriptor¶
Bases:
object
Data descriptor for ‘content_type’ class property.
- class rpkimancer.cms.ContentTypeSyntaxDescriptor¶
Bases:
object
Data descriptor for ‘content_syntax’ class property.
- class rpkimancer.cms.ContentType(data)¶
Bases:
Interface
CMS ASN.1 CONTENT-TYPE instance - RFC5911.
- Parameters:
data (Any) –
- asn1_definition: CLASS¶
- content_type¶
Data descriptor for ‘content_type’ class property.
- content_syntax: ASN1Obj¶
Data descriptor for ‘content_syntax’ class property.
- class rpkimancer.cms.SignedData(data)¶
Bases:
ContentType
CMS ASN.1 ct-SignedData CONTENT-TYPE instance - RFC5911.
- Parameters:
data (Any) –
- asn1_definition: CLASS = <ct-SignedData ([CONTENT-TYPE] CLASS): {'Type': <Type ([SignedData] SEQUENCE)>, 'id': (1, 2, 840, 113549, 1, 7, 2)}>¶
- class rpkimancer.cms.SignedAttributes(content_type, message_digest)¶
Bases:
Interface
CMS ASN.1 SignedAttributes type - RFC5911.
- Parameters:
content_type (OID) –
message_digest (bytes) –
- content_syntax: ASN1Obj = <SignedAttributes ([Attributes] SET OF)>¶
- class rpkimancer.cms.EncapsulatedContentInfo(econtent)¶
Bases:
Interface
,Generic
[CT
]CMS ASN.1 EncapsulatedContentInfo type - RFC5911.
- Parameters:
econtent (CT) –
- content_syntax: ASN1Obj = <EncapsulatedContentInfo (SEQUENCE)>¶
- digest_algorithm: DigestAlgorithm¶
- classmethod from_content_info(content_info)¶
De-encapsulate from ContentInfo instance.
- Parameters:
content_info (ContentInfo[SignedData]) –
- Return type:
- property econtent_val: Any¶
Extract the eContent value.