FILS: Fix hashed realm name derivation

P802.11ai/D7.0 changed from CRC32 to SHA256 as the hash algorithm for
the FILS realm name. Update the implementation to match that change.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-12-17 21:59:40 +02:00
parent 29062f2932
commit 42b847ac1e
3 changed files with 10 additions and 10 deletions

View file

@ -639,10 +639,7 @@ u8 * hostapd_eid_fils_indic(struct hostapd_data *hapd, u8 *eid, int hessid)
pos += ETH_ALEN;
}
if (hapd->conf->erp_domain) {
u16 hash;
hash = fils_domain_name_hash(hapd->conf->erp_domain);
WPA_PUT_LE16(pos, hash);
fils_domain_name_hash(hapd->conf->erp_domain, pos);
pos += 2;
}
*len = pos - len - 1;