wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
eap_ikev2_common.h
Go to the documentation of this file.
1 
5 #ifndef EAP_IKEV2_COMMON_H
6 #define EAP_IKEV2_COMMON_H
7 
8 #define IKEV2_FLAGS_LENGTH_INCLUDED 0x80
9 #define IKEV2_FLAGS_MORE_FRAGMENTS 0x40
10 #define IKEV2_FLAGS_ICV_INCLUDED 0x20
11 
12 #define IKEV2_FRAGMENT_SIZE 1400
13 
14 struct ikev2_keys;
15 
16 int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys,
17  const u8 *i_nonce, size_t i_nonce_len,
18  const u8 *r_nonce, size_t r_nonce_len,
19  u8 *keymat);
20 struct wpabuf * eap_ikev2_build_frag_ack(u8 id, u8 code);
21 int eap_ikev2_validate_icv(int integ_alg, struct ikev2_keys *keys,
22  int initiator, const struct wpabuf *msg,
23  const u8 *pos, const u8 *end);
24 
25 #endif /* EAP_IKEV2_COMMON_H */
Definition: wpabuf.h:16
Definition: ikev2_common.h:235