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

Class KTKeyBlock

scapy/modules/ticketer.py:299–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298
299class KTKeyBlock(Packet):
300 fields_desc = [
301 ShortEnumField("keytype", 0, _KRB_E_TYPES),
302 FieldLenField("keylen", None, length_of="keyvalue"),
303 StrLenField("keyvalue", b"", length_from=lambda pkt: pkt.keylen),
304 ]
305
306 def toKey(self):
307 return Key(self.keytype, key=self.keyvalue)
308
309 def guess_payload_class(self, payload):
310 return conf.padding_layer
311
312
313class KeytabEntry(Packet):

Callers 2

KeytabEntryClass · 0.85
add_credMethod · 0.85

Calls 3

ShortEnumFieldClass · 0.90
FieldLenFieldClass · 0.90
StrLenFieldClass · 0.90

Tested by

no test coverage detected