/* * wlantest - IEEE 802.11 protocol monitoring and testing tool * Copyright (c) 2010-2013, Jouni Malinen * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef WLANCRYPTO_WRAP_H #define WLANCRYPTO_WRAP_H int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); u8* ccmp_decrypt(_adapter *padapter, const u8 *tk, const struct ieee80211_hdr *hdr, const u8 *data, size_t data_len, size_t *decrypted_len); u8* ccmp_encrypt(_adapter *padapter, const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos, u8 *pn, int keyid, size_t *encrypted_len); u8* ccmp_encrypt_pv1(const u8 *tk, const u8 *a1, const u8 *a2, const u8 *a3, const u8 *frame, size_t len, size_t hdrlen, const u8 *pn, int keyid, size_t *encrypted_len); u8* ccmp_256_decrypt(_adapter *padapter, const u8 *tk, const struct ieee80211_hdr *hdr, const u8 *data, size_t data_len, size_t *decrypted_len); u8* ccmp_256_encrypt(_adapter *padapter, const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos, u8 *pn, int keyid, size_t *encrypted_len); u8* gcmp_decrypt(_adapter *padapter, const u8 *tk, size_t tk_len, const struct ieee80211_hdr *hdr, const u8 *data, size_t data_len, size_t *decrypted_len); u8* gcmp_encrypt(_adapter *padapter, const u8 *tk, size_t tk_len, const u8 *frame, size_t len, size_t hdrlen, const u8 *qos, const u8 *pn, int keyid, size_t *encrypted_len); #if 0 //RTW_PHL_TX: mark un-finished codes for reading void core_ccmp_encrypt(const u8 *tk, uint hdrlen, u8 *phdr, uint datalen, u8 *pdata, u8 *qos, u8 *pn, int keyid, size_t *encrypted_len); void core_ccmp_256_encrypt(const u8 *tk, uint hdrlen, u8 *phdr, uint datalen, u8 *pdata, u8 *qos, u8 *pn, int keyid, size_t *encrypted_len); #endif #endif /* WLANCRYPTO_WRAP_H */