MCPcopy Index your code
hub / github.com/secdev/scapy / CMS_SignerInfo

Class CMS_SignerInfo

scapy/layers/x509.py:1379–1413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1377
1378
1379class CMS_SignerInfo(ASN1_Packet):
1380 ASN1_codec = ASN1_Codecs.BER
1381 ASN1_root = ASN1F_SEQUENCE(
1382 CMSVersion("version", 1),
1383 ASN1F_CHOICE(
1384 "sid",
1385 CMS_IssuerAndSerialNumber(),
1386 ASN1F_PACKET("sid", CMS_IssuerAndSerialNumber(),
1387 CMS_IssuerAndSerialNumber),
1388 ASN1F_PACKET("sid", CMS_SubjectKeyIdentifier(),
1389 CMS_SubjectKeyIdentifier,
1390 implicit_tag=0x80),
1391 ),
1392 ASN1F_PACKET("digestAlgorithm", X509_AlgorithmIdentifier(),
1393 X509_AlgorithmIdentifier),
1394 ASN1F_optional(
1395 ASN1F_SET_OF(
1396 "signedAttrs",
1397 None,
1398 X509_Attribute,
1399 implicit_tag=0xA0,
1400 )
1401 ),
1402 ASN1F_PACKET("signatureAlgorithm", X509_AlgorithmIdentifier(),
1403 X509_AlgorithmIdentifier),
1404 ASN1F_STRING("signature", ASN1_UTF8_STRING("")),
1405 ASN1F_optional(
1406 ASN1F_SET_OF(
1407 "unsignedAttrs",
1408 None,
1409 X509_Attribute,
1410 implicit_tag=0xA1,
1411 )
1412 )
1413 )
1414
1415
1416# RFC3852 sect 5.4

Callers 1

signMethod · 0.90

Calls 10

ASN1F_SEQUENCEClass · 0.90
ASN1F_CHOICEClass · 0.90
ASN1F_PACKETClass · 0.90
ASN1F_optionalClass · 0.90
ASN1F_SET_OFClass · 0.90
ASN1F_STRINGClass · 0.90
ASN1_UTF8_STRINGClass · 0.90

Tested by

no test coverage detected