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

Class PCP_KEY_BLOB

scapy/layers/tpm.py:498–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496
497
498class PCP_KEY_BLOB(Packet):
499 fields_desc = [
500 StrFixedLenField("Magic", b"PCPM", length=4),
501 LEIntField("cbHeader", 0),
502 LEIntEnumField("pcpType", 1, _PCP_TYPE),
503 FlagsField(
504 "flags",
505 0,
506 -32,
507 {
508 0x00000001: "authRequired",
509 0x00000002: "undocumented2",
510 },
511 ),
512 LEIntField("cbTpmKey", 0),
513 StrLenField(
514 "tpmKey",
515 b"",
516 length_from=lambda pkt: pkt.cbTpmKey,
517 ),
518 ]
519
520
521class PCP_20_KEY_BLOB(Packet):

Callers 2

KeyAttestationClass · 0.85

Calls 5

StrFixedLenFieldClass · 0.90
LEIntFieldClass · 0.90
LEIntEnumFieldClass · 0.90
FlagsFieldClass · 0.90
StrLenFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…