mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_wifi: Move ccmp mgmt enc/decrypt logs to verbose
This commit is contained in:
parent
927183e744
commit
c7a7bb62c6
@ -157,8 +157,8 @@ u8 * ccmp_decrypt(const u8 *tk, const u8 *hdr,
|
|||||||
os_memset(aad, 0, sizeof(aad));
|
os_memset(aad, 0, sizeof(aad));
|
||||||
ccmp_aad_nonce((const struct ieee80211_hdr *)hdr, data, aad, &aad_len,
|
ccmp_aad_nonce((const struct ieee80211_hdr *)hdr, data, aad, &aad_len,
|
||||||
nonce);
|
nonce);
|
||||||
wpa_hexdump(MSG_DEBUG, "CCMP AAD", aad, aad_len);
|
wpa_hexdump(MSG_MSGDUMP, "CCMP AAD", aad, aad_len);
|
||||||
wpa_hexdump(MSG_DEBUG, "CCMP nonce", nonce, 13);
|
wpa_hexdump(MSG_MSGDUMP, "CCMP nonce", nonce, 13);
|
||||||
|
|
||||||
#ifdef ESPRESSIF_USE
|
#ifdef ESPRESSIF_USE
|
||||||
if (espnow_pkt) {
|
if (espnow_pkt) {
|
||||||
@ -171,7 +171,7 @@ u8 * ccmp_decrypt(const u8 *tk, const u8 *hdr,
|
|||||||
os_free(plain);
|
os_free(plain);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
wpa_hexdump(MSG_DEBUG, "CCMP decrypted", plain, mlen);
|
wpa_hexdump(MSG_MSGDUMP, "CCMP decrypted", plain, mlen);
|
||||||
|
|
||||||
*decrypted_len = mlen;
|
*decrypted_len = mlen;
|
||||||
return plain;
|
return plain;
|
||||||
@ -219,8 +219,8 @@ u8 * ccmp_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen,
|
|||||||
|
|
||||||
os_memset(aad, 0, sizeof(aad));
|
os_memset(aad, 0, sizeof(aad));
|
||||||
ccmp_aad_nonce(hdr, crypt + hdrlen, aad, &aad_len, nonce);
|
ccmp_aad_nonce(hdr, crypt + hdrlen, aad, &aad_len, nonce);
|
||||||
wpa_hexdump(MSG_DEBUG, "CCMP AAD", aad, aad_len);
|
wpa_hexdump(MSG_MSGDUMP, "CCMP AAD", aad, aad_len);
|
||||||
wpa_hexdump(MSG_DEBUG, "CCMP nonce", nonce, 13);
|
wpa_hexdump(MSG_MSGDUMP, "CCMP nonce", nonce, 13);
|
||||||
|
|
||||||
if (aes_ccm_ae(tk, 16, nonce, 8, frame + hdrlen, plen, aad, aad_len,
|
if (aes_ccm_ae(tk, 16, nonce, 8, frame + hdrlen, plen, aad, aad_len,
|
||||||
pos, pos + plen) < 0) {
|
pos, pos + plen) < 0) {
|
||||||
@ -229,7 +229,7 @@ u8 * ccmp_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
wpa_hexdump(MSG_DEBUG, "CCMP encrypted", crypt + hdrlen + 8, plen);
|
wpa_hexdump(MSG_MSGDUMP, "CCMP encrypted", crypt + hdrlen + 8, plen);
|
||||||
|
|
||||||
*encrypted_len = hdrlen + 8 + plen + 8;
|
*encrypted_len = hdrlen + 8 + plen + 8;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user