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

Class CMS_SignedData

scapy/layers/x509.py:1429–1457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1427# RFC3852 sect 5.1
1428
1429class CMS_SignedData(ASN1_Packet):
1430 ASN1_codec = ASN1_Codecs.BER
1431 ASN1_root = ASN1F_SEQUENCE(
1432 CMSVersion("version", 1),
1433 ASN1F_SET_OF("digestAlgorithms", [], X509_AlgorithmIdentifier),
1434 ASN1F_PACKET("encapContentInfo", CMS_EncapsulatedContentInfo(),
1435 CMS_EncapsulatedContentInfo),
1436 ASN1F_optional(
1437 ASN1F_SET_OF(
1438 "certificates",
1439 None,
1440 CMS_CertificateChoices,
1441 implicit_tag=0xA0,
1442 )
1443 ),
1444 ASN1F_optional(
1445 ASN1F_SET_OF(
1446 "crls",
1447 None,
1448 CMS_RevocationInfoChoice,
1449 implicit_tag=0xA1,
1450 )
1451 ),
1452 ASN1F_SET_OF(
1453 "signerInfos",
1454 [],
1455 CMS_SignerInfo,
1456 ),
1457 )
1458
1459
1460# RFC3852 sect 6.2.1

Callers 1

signMethod · 0.90

Calls 5

ASN1F_SEQUENCEClass · 0.90
ASN1F_SET_OFClass · 0.90
ASN1F_PACKETClass · 0.90
ASN1F_optionalClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…