Lines Matching defs:addr1
133 static void sae_pwd_seed_key(const u8 *addr1, const u8 *addr2, u8 *key)
135 wpa_printf(MSG_DEBUG, "SAE: PWE derivation - addr1=" MACSTR
136 " addr2=" MACSTR, MAC2STR(addr1), MAC2STR(addr2));
137 if (os_memcmp(addr1, addr2, ETH_ALEN) > 0) {
138 os_memcpy(key, addr1, ETH_ALEN);
142 os_memcpy(key + ETH_ALEN, addr1, ETH_ALEN);
283 static int sae_derive_pwe_ecc(struct sae_data *sae, const u8 *addr1,
337 sae_pwd_seed_key(addr1, addr2, addrs);
449 static int sae_derive_pwe_ffc(struct sae_data *sae, const u8 *addr1,
482 sae_pwd_seed_key(addr1, addr2, addrs);
1124 const u8 *addr1, const u8 *addr2)
1128 if (os_memcmp(addr1, addr2, ETH_ALEN) > 0) {
1129 addr[0] = addr1;
1133 addr[1] = addr1;
1140 const u8 *addr1, const u8 *addr2)
1160 sae_max_min_addr(addr, len, addr1, addr2);
1205 const u8 *addr1, const u8 *addr2)
1222 sae_max_min_addr(addr, len, addr1, addr2);
1347 int sae_prepare_commit(const u8 *addr1, const u8 *addr2,
1352 (sae->tmp->ec && sae_derive_pwe_ecc(sae, addr1, addr2, password,
1354 (sae->tmp->dh && sae_derive_pwe_ffc(sae, addr1, addr2, password,
1365 const u8 *addr1, const u8 *addr2,
1387 sae->tmp->own_addr_higher = os_memcmp(addr1, addr2, ETH_ALEN) > 0;
1405 sae->tmp->pwe_ecc = sae_derive_pwe_from_pt_ecc(pt, addr1,
1413 sae->tmp->pwe_ffc = sae_derive_pwe_from_pt_ffc(pt, addr1,