|
iPXE
|
WPA handshake key integrity and encryption handler. More...
#include <wpa.h>
Data Fields | |
| int | version |
| Value of version bits in EAPOL-Key info field for which to use. More... | |
| void(* | mic )(const void *kck, const void *msg, size_t len, void *mic) |
| Calculate MIC over message. More... | |
| int(* | decrypt )(const void *kek, const void *iv, void *msg, u16 *len) |
| Decrypt key data. More... | |
WPA handshake key integrity and encryption handler.
Note that due to the structure of the 4-Way Handshake we never actually need to encrypt key data, only decrypt it.
| int wpa_kie::version |
Value of version bits in EAPOL-Key info field for which to use.
This should be one of the EAPOL_KEY_VERSION_* constants.
Definition at line 376 of file wpa.h.
Referenced by wpa_find_kie().
Calculate MIC over message.
| kck | Key Confirmation Key, 16 bytes |
| msg | Message to calculate MIC over |
| len | Number of bytes to calculate MIC over |
| mic | Calculated MIC, 16 bytes long |
The mic return may point within msg, so it must not be filled until the calculation has been performed.
Definition at line 388 of file wpa.h.
Referenced by eapol_key_rx(), and wpa_send_eapol().
Decrypt key data.
| kek | Key Encryption Key, 16 bytes |
| iv | Initialisation vector for encryption, 16 bytes |
| msg | Message to decrypt (Key Data field) |
| len | Length of message |
| msg | Decrypted message in place of original |
| len | Updated to reflect encrypted length |
| rc | Return status code |
The decrypted message is written over the encrypted one.
Definition at line 403 of file wpa.h.
Referenced by eapol_key_rx(), and wpa_handle_1_of_2().
1.8.15