Home
last modified time | relevance | path

Searched refs:authkey (Results 1 – 7 of 7) sorted by relevance

/hostap-latest/tests/hwsim/
Dtest_ap_wps.py6543 authkey = keys[0:32]
6546 return authkey, keywrapkey, emsk
6548 def wsc_dev_pw_half_psk(authkey, dev_pw): argument
6549 m = hmac.new(authkey, dev_pw.encode(), hashlib.sha256)
6552 def wsc_dev_pw_psk(authkey, dev_pw): argument
6555 psk1 = wsc_dev_pw_half_psk(authkey, dev_pw_1)
6556 psk2 = wsc_dev_pw_half_psk(authkey, dev_pw_2)
6559 def build_attr_authenticator(authkey, prev_msg, curr_msg): argument
6560 m = hmac.new(authkey, prev_msg + curr_msg, hashlib.sha256)
6564 def build_attr_encr_settings(authkey, keywrapkey, data): argument
[all …]
/hostap-latest/src/wps/
Dwps_attr_process.c43 if (hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 2, addr, len, in wps_process_authenticator()
74 if (hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, head, len, hash) < 0 || in wps_process_key_wrap_auth()
Dwps_common.c117 os_memcpy(wps->authkey, keys, WPS_AUTHKEY_LEN); in wps_derive_keys()
123 wps->authkey, WPS_AUTHKEY_LEN); in wps_derive_keys()
137 if (hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, dev_passwd, in wps_derive_psk()
141 if (hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, in wps_derive_psk()
Dwps_attr_build.c178 if (hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 2, addr, len, in wps_build_authenticator()
382 if (hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, wpabuf_head(msg), in wps_build_key_wrap_auth()
Dwps_enrollee.c66 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_build_e_hash()
76 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_build_e_hash()
647 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_process_r_snonce1()
687 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_process_r_snonce2()
Dwps_i.h64 u8 authkey[WPS_AUTHKEY_LEN]; member
Dwps_registrar.c1485 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_build_r_hash()
1495 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_build_r_hash()
2308 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_process_e_snonce1()
2348 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_process_e_snonce2()