Skip to main content

Module security

Module security 

Source
Expand description

IEEE 802.11 security wrappers (WEP, TKIP, CCMP).

These wrappers handle the encryption header and trailer fields that appear in protected 802.11 data frames. They do NOT perform actual encryption/decryption — they provide parsing and building of the security header/trailer structures.

Structs§

Dot11CCMP
CCMP (Counter Mode CBC-MAC Protocol / AES-CCM) encryption wrapper.
Dot11TKIP
TKIP (Temporal Key Integrity Protocol) encryption wrapper.
Dot11WEP
WEP (Wired Equivalent Privacy) encryption wrapper.

Enums§

SecurityType
Security protocol type detected from the header.

Constants§

CCMP_HEADER_LEN
CCMP header length: 8 bytes always.
CCMP_MIC_LEN
CCMP trailer length: MIC(8) = 8 bytes.
TKIP_HEADER_LONG
TKIP header length with Extended IV: 8 bytes.
TKIP_HEADER_SHORT
TKIP header length without Extended IV: 4 bytes.
TKIP_ICV_LEN
TKIP trailer length: MIC(8) + ICV(4) = 12 bytes. Note: The ICV is part of the encrypted payload, and the 8-byte MIC is also encrypted. The trailer for raw wire format is 4 bytes (ICV only).
WEP_HEADER_LEN
WEP header length: IV(3) + KeyID(1) = 4 bytes.
WEP_TRAILER_LEN
WEP trailer length: ICV(4) = 4 bytes.

Functions§

detect_security_type
Detect the security type from the encryption header at the given offset.