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

Class _Checksum_Field

scapy/layers/kerberos.py:504–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502
503
504class _Checksum_Field(ASN1F_STRING_PacketField):
505 def m2i(self, pkt, s):
506 val = super(_Checksum_Field, self).m2i(pkt, s)
507 if not val[0].val:
508 return val
509 if pkt.cksumtype.val == 0x8003:
510 # Special case per RFC 4121
511 return KRB_AuthenticatorChecksum(val[0].val, _underlayer=pkt), val[1]
512 return val
513
514
515class Checksum(ASN1_Packet):

Callers 1

ChecksumClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…