|
wpa_supplicant / hostapd 2.0
|
00001 00010 #ifndef EAP_IKEV2_COMMON_H 00011 #define EAP_IKEV2_COMMON_H 00012 00013 #ifdef CCNS_PL 00014 /* incorrect bit order */ 00015 #define IKEV2_FLAGS_LENGTH_INCLUDED 0x01 00016 #define IKEV2_FLAGS_MORE_FRAGMENTS 0x02 00017 #define IKEV2_FLAGS_ICV_INCLUDED 0x04 00018 #else /* CCNS_PL */ 00019 #define IKEV2_FLAGS_LENGTH_INCLUDED 0x80 00020 #define IKEV2_FLAGS_MORE_FRAGMENTS 0x40 00021 #define IKEV2_FLAGS_ICV_INCLUDED 0x20 00022 #endif /* CCNS_PL */ 00023 00024 #define IKEV2_FRAGMENT_SIZE 1400 00025 00026 struct ikev2_keys; 00027 00028 int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys, 00029 const u8 *i_nonce, size_t i_nonce_len, 00030 const u8 *r_nonce, size_t r_nonce_len, 00031 u8 *keymat); 00032 struct wpabuf * eap_ikev2_build_frag_ack(u8 id, u8 code); 00033 int eap_ikev2_validate_icv(int integ_alg, struct ikev2_keys *keys, 00034 int initiator, const struct wpabuf *msg, 00035 const u8 *pos, const u8 *end); 00036 00037 #endif /* EAP_IKEV2_COMMON_H */ 00038
1.7.3