How wpa_supplicant calculate MIC in WPA mode?

Jouni Malinen j at w1.fi
Mon Apr 7 03:12:23 EDT 2008


On Sun, Apr 06, 2008 at 10:50:24PM +0800, zhangxianshi wrote:

> When wpa_supplicant works in WPA mode, the configure is 
> network={
> ............
>  proto=WPA
>  pairwise=TKIP
>  group=TKIP

> How it calculates MIC and encrypts data? Which functions will be used?

EAPOL-Key frames are processed in wpa.c. wpa_eapol_key_mic() function
calculates the MIC for EAPOL-Key frames. The Key Data field in EAPOL-Key
frames is encrypted with RC4 (in case of TKIP) or AES key wrap; this is
implemented in wpa.c.

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list