Go to the source code of this file.
Classes | |
struct | eap_psk_hdr_1 |
struct | eap_psk_hdr_2 |
struct | eap_psk_hdr_3 |
struct | eap_psk_hdr_4 |
Defines | |
#define | EAP_PSK_AK_LEN 16 |
#define | EAP_PSK_E_FLAG 0x20 |
#define | EAP_PSK_FLAGS_GET_T(flags) (((flags) & 0xc0) >> 6) |
#define | EAP_PSK_FLAGS_SET_T(t) ((u8) (t) << 6) |
#define | EAP_PSK_KDK_LEN 16 |
#define | EAP_PSK_MAC_LEN 16 |
#define | EAP_PSK_PSK_LEN 16 |
#define | EAP_PSK_R_FLAG_CONT 1 |
#define | EAP_PSK_R_FLAG_DONE_FAILURE 3 |
#define | EAP_PSK_R_FLAG_DONE_SUCCESS 2 |
#define | EAP_PSK_RAND_LEN 16 |
#define | EAP_PSK_TEK_LEN 16 |
Functions | |
int __must_check | eap_psk_derive_keys (const u8 *kdk, const u8 *rand_p, u8 *tek, u8 *msk, u8 *emsk) |
int __must_check | eap_psk_key_setup (const u8 *psk, u8 *ak, u8 *kdk) |
Variables | |
struct eap_psk_hdr_1 | STRUCT_PACKED |
#define EAP_PSK_AK_LEN 16 |
Definition at line 23 of file eap_psk_common.h.
#define EAP_PSK_E_FLAG 0x20 |
Definition at line 29 of file eap_psk_common.h.
#define EAP_PSK_FLAGS_GET_T | ( | flags | ) | (((flags) & 0xc0) >> 6) |
Definition at line 31 of file eap_psk_common.h.
#define EAP_PSK_FLAGS_SET_T | ( | t | ) | ((u8) (t) << 6) |
Definition at line 32 of file eap_psk_common.h.
#define EAP_PSK_KDK_LEN 16 |
Definition at line 24 of file eap_psk_common.h.
#define EAP_PSK_MAC_LEN 16 |
Definition at line 20 of file eap_psk_common.h.
#define EAP_PSK_PSK_LEN 16 |
Definition at line 22 of file eap_psk_common.h.
#define EAP_PSK_R_FLAG_CONT 1 |
Definition at line 26 of file eap_psk_common.h.
#define EAP_PSK_R_FLAG_DONE_FAILURE 3 |
Definition at line 28 of file eap_psk_common.h.
#define EAP_PSK_R_FLAG_DONE_SUCCESS 2 |
Definition at line 27 of file eap_psk_common.h.
#define EAP_PSK_RAND_LEN 16 |
Definition at line 19 of file eap_psk_common.h.
#define EAP_PSK_TEK_LEN 16 |
Definition at line 21 of file eap_psk_common.h.
int __must_check eap_psk_derive_keys | ( | const u8 * | kdk, |
const u8 * | rand_p, | ||
u8 * | tek, | ||
u8 * | msk, | ||
u8 * | emsk | ||
) |
Definition at line 40 of file eap_psk_common.c.
int __must_check eap_psk_key_setup | ( | const u8 * | psk, |
u8 * | ak, | ||
u8 * | kdk | ||
) |
Definition at line 25 of file eap_psk_common.c.
struct eap_psk_hdr_4 STRUCT_PACKED |