MCPcopy Create free account
hub / github.com/secdev/scapy / CMS_ContentInfo

Class CMS_ContentInfo

scapy/layers/x509.py:1613–1632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1611# RFC3852 sect 3
1612
1613class CMS_ContentInfo(ASN1_Packet):
1614 ASN1_codec = ASN1_Codecs.BER
1615 ASN1_root = ASN1F_SEQUENCE(
1616 ASN1F_OID("contentType", "1.2.840.113549.1.7.2"),
1617 MultipleTypeField(
1618 [
1619 (
1620 ASN1F_PACKET("content", None, CMS_SignedData,
1621 explicit_tag=0xA0),
1622 lambda pkt: pkt.contentType.oidname == "id-signedData"
1623 ),
1624 (
1625 ASN1F_PACKET("content", None, CMS_EnvelopedData,
1626 explicit_tag=0xA0),
1627 lambda pkt: pkt.contentType.oidname == "id-envelopedData"
1628 ),
1629 ],
1630 ASN1F_BIT_STRING("content", "", explicit_tag=0xA0)
1631 )
1632 )
1633
1634
1635#####################

Callers 5

PA_PK_AS_REQClass · 0.90
DHRepInfoClass · 0.90
__call__Method · 0.90
signMethod · 0.90

Calls 5

ASN1F_SEQUENCEClass · 0.90
ASN1F_OIDClass · 0.90
MultipleTypeFieldClass · 0.90
ASN1F_PACKETClass · 0.90
ASN1F_BIT_STRINGClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…