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

Method _getServerChecksum

scapy/modules/ticketer.py:1888–1907  ·  view source on GitHub ↗
(self, pac, element)

Source from the content-addressed store, hash-verified

1886 )
1887
1888 def _getServerChecksum(self, pac, element):
1889 serverChecksum = pac.getPayload(0x00000006)
1890 if not serverChecksum:
1891 pac.Buffers.append(PAC_INFO_BUFFER(ulType=0x00000006))
1892 serverChecksum = PAC_SIGNATURE_DATA()
1893 return self._make_fields(
1894 element,
1895 [
1896 (
1897 "SRVSignatureType",
1898 (
1899 str(serverChecksum.SignatureType)
1900 if serverChecksum.SignatureType is not None
1901 else ""
1902 ),
1903 ),
1904 ("SRVSignature", bytes_hex(serverChecksum.Signature).decode()),
1905 ("SRVRODCIdentifier", serverChecksum.RODCIdentifier.decode()),
1906 ],
1907 )
1908
1909 def _getKDCChecksum(self, pac, element):
1910 kdcChecksum = pac.getPayload(0x00000007)

Callers 1

edit_ticketMethod · 0.95

Calls 7

_make_fieldsMethod · 0.95
PAC_INFO_BUFFERClass · 0.90
PAC_SIGNATURE_DATAClass · 0.90
bytes_hexFunction · 0.90
getPayloadMethod · 0.80
decodeMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected