Lines Matching refs:hash
1392 u8 *hash;
1411 hash = wpabuf_put(msg, SHA256_MAC_LEN);
1421 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash);
1422 wpa_hexdump(MSG_DEBUG, "WPS: R-Hash1", hash, SHA256_MAC_LEN);
1427 hash = wpabuf_put(msg, SHA256_MAC_LEN);
1431 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash);
1432 wpa_hexdump(MSG_DEBUG, "WPS: R-Hash2", hash, SHA256_MAC_LEN);
2147 u8 hash[SHA256_MAC_LEN];
2168 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash);
2170 if (os_memcmp(wps->peer_hash1, hash, WPS_HASH_LEN) != 0) {
2187 u8 hash[SHA256_MAC_LEN];
2208 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash);
2210 if (os_memcmp(wps->peer_hash2, hash, WPS_HASH_LEN) != 0) {
2532 u8 hash[WPS_HASH_LEN];
2543 sha256_vector(1, addr, &attr->public_key_len, hash);
2544 if (os_memcmp(hash, wps->nfc_pw_token->pubkey_hash,
2546 wpa_printf(MSG_ERROR, "WPS: Public Key hash "
3516 const u8 *pos, *hash, *dev_pw;
3526 hash = oob_dev_pw;
3536 hash, WPS_OOB_PUBKEY_HASH_LEN);
3539 return wps_registrar_add_nfc_pw_token(reg, hash, id, dev_pw,