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§
- Security
Type - 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.