eap_ikev2_common.h
Go to the documentation of this file.00001
00016 #ifndef EAP_IKEV2_COMMON_H
00017 #define EAP_IKEV2_COMMON_H
00018
00019 #ifdef CCNS_PL
00020
00021 #define IKEV2_FLAGS_LENGTH_INCLUDED 0x01
00022 #define IKEV2_FLAGS_MORE_FRAGMENTS 0x02
00023 #define IKEV2_FLAGS_ICV_INCLUDED 0x04
00024 #else
00025 #define IKEV2_FLAGS_LENGTH_INCLUDED 0x80
00026 #define IKEV2_FLAGS_MORE_FRAGMENTS 0x40
00027 #define IKEV2_FLAGS_ICV_INCLUDED 0x20
00028 #endif
00029
00030 #define IKEV2_FRAGMENT_SIZE 1400
00031
00032 struct ikev2_keys;
00033
00034 int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys,
00035 const u8 *i_nonce, size_t i_nonce_len,
00036 const u8 *r_nonce, size_t r_nonce_len,
00037 u8 *keymat);
00038 struct wpabuf * eap_ikev2_build_frag_ack(u8 id, u8 code);
00039 int eap_ikev2_validate_icv(int integ_alg, struct ikev2_keys *keys,
00040 int initiator, const struct wpabuf *msg,
00041 const u8 *pos, const u8 *end);
00042
00043 #endif
00044