equal
deleted
inserted
replaced
43 #include "eapol_rc4_key_header.h" |
43 #include "eapol_rc4_key_header.h" |
44 #include "eapol_key_state_string.h" |
44 #include "eapol_key_state_string.h" |
45 |
45 |
46 //-------------------------------------------------- |
46 //-------------------------------------------------- |
47 // |
47 // |
48 eap_status_e eapol_key_state_c::create_4_way_handshake_message_2( |
48 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_4_way_handshake_message_2( |
49 eap_buf_chain_wr_c * const sent_packet, |
49 eap_buf_chain_wr_c * const sent_packet, |
50 const u32_t eapol_header_offset, |
50 const u32_t eapol_header_offset, |
51 u32_t * const data_length, |
51 u32_t * const data_length, |
52 u32_t * const buffer_length, |
52 u32_t * const buffer_length, |
53 const u64_t received_key_replay_counter, |
53 const u64_t received_key_replay_counter, |
258 } |
258 } |
259 |
259 |
260 //-------------------------------------------------- |
260 //-------------------------------------------------- |
261 |
261 |
262 // |
262 // |
263 eap_status_e eapol_key_state_c::create_4_way_handshake_message_4( |
263 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_4_way_handshake_message_4( |
264 eap_buf_chain_wr_c * const sent_packet, |
264 eap_buf_chain_wr_c * const sent_packet, |
265 const u32_t eapol_header_offset, |
265 const u32_t eapol_header_offset, |
266 u32_t * const data_length, |
266 u32_t * const data_length, |
267 u32_t * const buffer_length, |
267 u32_t * const buffer_length, |
268 const u64_t received_key_replay_counter, |
268 const u64_t received_key_replay_counter, |
409 } |
409 } |
410 |
410 |
411 //-------------------------------------------------- |
411 //-------------------------------------------------- |
412 |
412 |
413 // |
413 // |
414 eap_status_e eapol_key_state_c::process_4_way_handshake_message_1( |
414 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message_1( |
415 const eap_am_network_id_c * const receive_network_id, |
415 const eap_am_network_id_c * const receive_network_id, |
416 eapol_RSNA_key_header_c * const eapol_key_message, |
416 eapol_RSNA_key_header_c * const eapol_key_message, |
417 const u32_t /* packet_length */) |
417 const u32_t /* packet_length */) |
418 { |
418 { |
419 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
419 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
767 } |
767 } |
768 |
768 |
769 //-------------------------------------------------- |
769 //-------------------------------------------------- |
770 |
770 |
771 // |
771 // |
772 eap_status_e eapol_key_state_c::process_4_way_handshake_message_3_payloads_a( |
772 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message_3_payloads_a( |
773 const eap_am_network_id_c * const receive_network_id, |
773 const eap_am_network_id_c * const receive_network_id, |
774 eapol_RSNA_key_header_c * const eapol_key_message, |
774 eapol_RSNA_key_header_c * const eapol_key_message, |
775 const u32_t packet_length, |
775 const u32_t packet_length, |
776 bool * const group_key_received) |
776 bool * const group_key_received) |
777 { |
777 { |
960 } |
960 } |
961 |
961 |
962 //-------------------------------------------------- |
962 //-------------------------------------------------- |
963 |
963 |
964 // |
964 // |
965 eap_status_e eapol_key_state_c::process_4_way_handshake_message_3_payloads_b( |
965 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message_3_payloads_b( |
966 const eap_am_network_id_c * const receive_network_id, |
966 const eap_am_network_id_c * const receive_network_id, |
967 eapol_RSNA_key_header_c * const eapol_key_message, |
967 eapol_RSNA_key_header_c * const eapol_key_message, |
968 const u32_t /* packet_length */, |
968 const u32_t /* packet_length */, |
969 const bool group_key_received) |
969 const bool group_key_received) |
970 { |
970 { |
1136 } |
1136 } |
1137 |
1137 |
1138 //-------------------------------------------------- |
1138 //-------------------------------------------------- |
1139 |
1139 |
1140 // |
1140 // |
1141 eap_status_e eapol_key_state_c::process_4_way_handshake_message_3( |
1141 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_4_way_handshake_message_3( |
1142 const eap_am_network_id_c * const receive_network_id, |
1142 const eap_am_network_id_c * const receive_network_id, |
1143 eapol_RSNA_key_header_c * const eapol_key_message, |
1143 eapol_RSNA_key_header_c * const eapol_key_message, |
1144 const u32_t packet_length) |
1144 const u32_t packet_length) |
1145 { |
1145 { |
1146 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
1146 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
1446 } |
1446 } |
1447 |
1447 |
1448 //-------------------------------------------------- |
1448 //-------------------------------------------------- |
1449 |
1449 |
1450 // |
1450 // |
1451 eap_status_e eapol_key_state_c::create_eapol_key_handshake_message_0( |
1451 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_eapol_key_handshake_message_0( |
1452 const bool true_when_4_way_handshake, ///< With false initiates Group Key Handshake. |
1452 const bool true_when_4_way_handshake, ///< With false initiates Group Key Handshake. |
1453 eap_buf_chain_wr_c * const sent_packet, |
1453 eap_buf_chain_wr_c * const sent_packet, |
1454 const u32_t eapol_header_offset, |
1454 const u32_t eapol_header_offset, |
1455 u32_t * const data_length, |
1455 u32_t * const data_length, |
1456 u32_t * const buffer_length, |
1456 u32_t * const buffer_length, |
1576 } |
1576 } |
1577 |
1577 |
1578 //-------------------------------------------------- |
1578 //-------------------------------------------------- |
1579 |
1579 |
1580 // |
1580 // |
1581 eap_status_e eapol_key_state_c::create_group_key_handshake_message_2( |
1581 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::create_group_key_handshake_message_2( |
1582 eap_buf_chain_wr_c * const sent_packet, |
1582 eap_buf_chain_wr_c * const sent_packet, |
1583 const u32_t eapol_header_offset, |
1583 const u32_t eapol_header_offset, |
1584 u32_t * const data_length, |
1584 u32_t * const data_length, |
1585 u32_t * const buffer_length, |
1585 u32_t * const buffer_length, |
1586 const u64_t received_key_replay_counter, |
1586 const u64_t received_key_replay_counter, |
1719 } |
1719 } |
1720 |
1720 |
1721 //-------------------------------------------------- |
1721 //-------------------------------------------------- |
1722 |
1722 |
1723 // |
1723 // |
1724 eap_status_e eapol_key_state_c::process_group_key_handshake_message_1( |
1724 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_group_key_handshake_message_1( |
1725 const eap_am_network_id_c * const receive_network_id, |
1725 const eap_am_network_id_c * const receive_network_id, |
1726 eapol_RSNA_key_header_c * const eapol_key_message, |
1726 eapol_RSNA_key_header_c * const eapol_key_message, |
1727 const u32_t packet_length) |
1727 const u32_t packet_length) |
1728 { |
1728 { |
1729 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
1729 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
2159 } |
2159 } |
2160 |
2160 |
2161 //-------------------------------------------------- |
2161 //-------------------------------------------------- |
2162 |
2162 |
2163 // |
2163 // |
2164 eap_status_e eapol_key_state_c::process_RC4_key_descriptor( |
2164 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::process_RC4_key_descriptor( |
2165 const eap_am_network_id_c * const receive_network_id, |
2165 const eap_am_network_id_c * const receive_network_id, |
2166 eap_general_header_base_c * const packet_data, |
2166 eap_general_header_base_c * const packet_data, |
2167 const u32_t packet_length) |
2167 const u32_t packet_length) |
2168 { |
2168 { |
2169 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
2169 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
2559 } |
2559 } |
2560 |
2560 |
2561 //-------------------------------------------------- |
2561 //-------------------------------------------------- |
2562 |
2562 |
2563 // |
2563 // |
2564 eap_status_e eapol_key_state_c::initialize_4_way_handshake( |
2564 EAP_FUNC_EXPORT eap_status_e eapol_key_state_c::initialize_4_way_handshake( |
2565 const eap_am_network_id_c * const receive_network_id, |
2565 const eap_am_network_id_c * const receive_network_id, |
2566 const eapol_protocol_version_e used_eapol_version) |
2566 const eapol_protocol_version_e used_eapol_version) |
2567 { |
2567 { |
2568 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
2568 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
2569 EAP_UNREFERENCED_PARAMETER(receive_network_id); |
2569 EAP_UNREFERENCED_PARAMETER(receive_network_id); |