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

Method verify_checksum

scapy/layers/kerberos.py:1399–1406  ·  view source on GitHub ↗

Verify paChecksum and paChecksum2

(self, text)

Source from the content-addressed store, hash-verified

1397 self.paChecksum2.make(text, h=h)
1398
1399 def verify_checksum(self, text):
1400 """
1401 Verify paChecksum and paChecksum2
1402 """
1403 if self.paChecksum.val != Hash_SHA().digest(text):
1404 raise ValueError("Bad paChecksum checksum !")
1405
1406 self.paChecksum2.verify(text)
1407
1408
1409# RFC8636 sect 6

Callers 2

verifyMethod · 0.45
GSS_UnwrapExMethod · 0.45

Calls 3

Hash_SHAClass · 0.90
digestMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected