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

Function prepare_packed_data

scapy/layers/radius.py:615–622  ·  view source on GitHub ↗

Pack RADIUS data prior computing the authentication MAC

(radius_packet, RequestAuth)

Source from the content-addressed store, hash-verified

613
614
615def prepare_packed_data(radius_packet, RequestAuth):
616 """
617 Pack RADIUS data prior computing the authentication MAC
618 """
619 s = bytes(radius_packet)
620 Code_Id_Length = s[:4]
621 Attributes = s[4 + 16:]
622 return Code_Id_Length + RequestAuth + Attributes
623
624
625class RadiusAttr_Message_Authenticator(_RadiusAttrHexStringVal):

Callers 2

compute_authenticatorMethod · 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…