00001 00013 #ifndef _ME_MIC_H_ 00014 #define _ME_MIC_H_ 00015 00024 /* 00025 * INCLUDE FILES 00026 **************************************************************************************** 00027 */ 00028 00029 #include "co_int.h" 00030 #include "mac.h" 00031 00032 /* 00033 * TYPE and STRUCT DEFINITIONS 00034 **************************************************************************************** 00035 */ 00036 00042 struct mic_calc 00043 { 00048 uint32_t mic_key_least; 00053 uint32_t mic_key_most; 00054 00056 uint32_t last_m_i; 00058 uint8_t last_m_i_len; 00059 }; 00060 00061 /* 00062 * FUNCTION PROTOTYPES 00063 **************************************************************************************** 00064 */ 00065 00083 void me_mic_init(struct mic_calc *mic_calc_ptr, uint32_t *mic_key_ptr, 00084 struct mac_addr *da, struct mac_addr *sa, uint8_t tid); 00085 00097 void me_mic_calc(struct mic_calc *mic_calc_ptr, uint32_t start_ptr, 00098 uint32_t data_len); 00099 00113 void me_mic_end(struct mic_calc *mic_calc_ptr); 00114 00118 #endif // _ME_MIC_H_
1.6.1