Is data encryption iof WPA2 mplemented in wpa_supplicant or in another process?
Christian Lamparter
chunkeey
Tue Dec 11 13:04:23 PST 2012
On Tuesday, December 11, 2012 09:37:17 PM Chao Xu wrote:
> I'm trying to understand how the data encryption of WPA2 is implemented in
> wpa_supplicant.
I'm not Jouni... But encryption and decryption of the data is usually
handled by the wifi hardware. However, most mac80211-based drivers
provide a module parameter (swenc, nohwcrypt, ...) which - when set -
will let the driver/stack fallback to software encryption and decryption
[no more firmware/hardware will be involved].
You can find the entry code which handles AES encryption
for all mac80211-based driver under
linux-kernel-source/net/mac80211/wpa.c, ieee80211_crypto_ccmp_encrypt.
It's called as part of the tx path from: ieee80211_tx_h_encrypt
from net/mac80211/tx.c
Regards,
Chr
More information about the Hostap
mailing list