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

Class CMS_KeyTransRecipientInfo

scapy/layers/x509.py:1462–1479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1460# RFC3852 sect 6.2.1
1461
1462class CMS_KeyTransRecipientInfo(ASN1_Packet):
1463 ASN1_codec = ASN1_Codecs.BER
1464 ASN1_root = ASN1F_SEQUENCE(
1465 CMSVersion("version", 0),
1466 ASN1F_CHOICE(
1467 "rid",
1468 CMS_IssuerAndSerialNumber(),
1469 ASN1F_PACKET("rid", CMS_IssuerAndSerialNumber(),
1470 CMS_IssuerAndSerialNumber),
1471 ASN1F_PACKET("rid", CMS_SubjectKeyIdentifier(),
1472 CMS_SubjectKeyIdentifier,
1473 implicit_tag=0x80),
1474 ),
1475 ASN1F_PACKET("keyEncryptionAlgorithm",
1476 X509_AlgorithmIdentifier(),
1477 X509_AlgorithmIdentifier),
1478 ASN1F_STRING("encryptedKey", ""),
1479 )
1480
1481
1482# RFC3852 sect 6.2.2

Callers 1

CMS_RecipientInfoClass · 0.85

Calls 7

ASN1F_SEQUENCEClass · 0.90
ASN1F_CHOICEClass · 0.90
ASN1F_PACKETClass · 0.90
ASN1F_STRINGClass · 0.90

Tested by

no test coverage detected