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

Class STUNMessageIntegrity

scapy/contrib/stun.py:107–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106
107class STUNMessageIntegrity(STUNGenericTlv):
108 name = "STUN Message Integrity"
109
110 fields_desc = [
111 XShortField("type", 0x0008),
112 ShortField("length", 20),
113 XNBytesField("hmac_sha1", 0, 20)
114 ]
115
116 def post_build(self, pkt, pay):
117 pkt += pay
118 return pkt
119
120
121class STUNPriority(STUNGenericTlv):

Callers

nothing calls this directly

Calls 3

XShortFieldClass · 0.90
ShortFieldClass · 0.90
XNBytesFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…