| /hostap-latest/src/eap_common/ |
| D | eap_psk_common.c | 38 u8 counter = 1; in eap_psk_derive_keys() local 44 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 47 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 48 counter++; in eap_psk_derive_keys() 51 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 54 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 55 counter++; in eap_psk_derive_keys() 59 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 63 hash[aes_block_size - 1] ^= counter; in eap_psk_derive_keys() 64 counter++; in eap_psk_derive_keys()
|
| D | eap_peap_common.c | 19 unsigned char counter = 0; in peap_prfplus() local 46 addr[3] = &counter; in peap_prfplus() 64 addr[4] = &counter; in peap_prfplus() 70 counter++; in peap_prfplus()
|
| D | eap_pax_common.c | 36 u8 counter, *pos; in eap_pax_kdf() local 53 addr[2] = &counter; in eap_pax_kdf() 58 for (counter = 1; counter <= (u8) num_blocks; counter++) { in eap_pax_kdf()
|
| D | eap_sim_common.c | 114 u8 counter[2]; in eap_sim_derive_keys_reauth() local 125 addr[1] = counter; in eap_sim_derive_keys_reauth() 132 WPA_PUT_BE16(counter, _counter); in eap_sim_derive_keys_reauth() 137 wpa_hexdump(MSG_DEBUG, "EAP-SIM: counter", counter, 2); in eap_sim_derive_keys_reauth() 324 int eap_aka_prime_derive_keys_reauth(const u8 *k_re, u16 counter, in eap_aka_prime_derive_keys_reauth() argument 338 WPA_PUT_BE16(seed3, counter); in eap_aka_prime_derive_keys_reauth() 504 attr->counter = -1; in eap_sim_parse_attr() 682 attr->counter = apos[0] * 256 + apos[1]; in eap_sim_parse_attr() 684 attr->counter); in eap_sim_parse_attr()
|
| D | eap_sim_common.h | 95 int eap_aka_prime_derive_keys_reauth(const u8 *k_re, u16 counter, 116 static inline int eap_aka_prime_derive_keys_reauth(const u8 *k_re, u16 counter, in eap_aka_prime_derive_keys_reauth() argument 196 int notification, counter, selected_version, client_error_code; member
|
| D | eap_sake_common.c | 221 u8 counter = 0; in eap_sake_kdf() local 234 addr[3] = &counter; /* Length */ in eap_sake_kdf() 252 counter++; in eap_sake_kdf()
|
| /hostap-latest/tests/hwsim/ |
| D | test_ap_psk.py | 1445 counter = 0 1450 m.update(struct.pack('B', counter)) 1451 counter += 1 1864 counter = 1 1865 msg = build_eapol_key_1_4(anonce, replay_counter=counter) 1866 counter += 1 1875 msg = build_eapol_key_3_4(anonce, kck, b'', replay_counter=counter) 1876 counter += 1 1884 msg = build_eapol_key_3_4(anonce, kck, b'1', replay_counter=counter) 1885 counter += 1 [all …]
|
| D | test_ocv.py | 717 self.counter = None 769 self.counter = struct.unpack('>Q', 782 replay_counter=self.counter) 786 self.counter += 1 799 replay_counter=self.counter) 803 self.counter += 1
|
| /hostap-latest/src/crypto/ |
| D | aes-ctr.c | 32 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE]; in aes_ctr_encrypt() local 37 os_memcpy(counter, nonce, AES_BLOCK_SIZE); in aes_ctr_encrypt() 40 aes_encrypt(ctx, counter, buf); in aes_ctr_encrypt() 49 counter[i]++; in aes_ctr_encrypt() 50 if (counter[i]) in aes_ctr_encrypt()
|
| D | sha1-prf.c | 33 u8 counter = 0; in sha1_prf() local 44 addr[2] = &counter; in sha1_prf() 62 counter++; in sha1_prf()
|
| D | sha1-tprf.c | 32 unsigned char counter = 0; in sha1_t_prf() local 48 addr[4] = &counter; in sha1_t_prf() 55 counter++; in sha1_t_prf()
|
| D | sha256-prf.c | 58 u16 counter = 1; in sha256_prf_bits() local 79 WPA_PUT_LE16(counter_le, counter); in sha256_prf_bits() 93 counter++; in sha256_prf_bits()
|
| D | sha384-prf.c | 58 u16 counter = 1; in sha384_prf_bits() local 79 WPA_PUT_LE16(counter_le, counter); in sha384_prf_bits() 93 counter++; in sha384_prf_bits()
|
| D | sha512-prf.c | 58 u16 counter = 1; in sha512_prf_bits() local 79 WPA_PUT_LE16(counter_le, counter); in sha512_prf_bits() 93 counter++; in sha512_prf_bits()
|
| /hostap-latest/src/eap_server/ |
| D | eap_server_sim.c | 38 u16 counter; member 167 struct eap_sim_msg *msg, u16 counter, in eap_sim_build_encr() argument 186 } else if (data->counter <= EAP_SIM_MAX_FAST_REAUTHS) { in eap_sim_build_encr() 197 counter == 0 && nonce_s == NULL) in eap_sim_build_encr() 204 if (counter > 0) { in eap_sim_build_encr() 205 wpa_printf(MSG_DEBUG, " *AT_COUNTER (%u)", counter); in eap_sim_build_encr() 206 eap_sim_msg_add(msg, EAP_SIM_AT_COUNTER, counter, NULL, 0); in eap_sim_build_encr() 288 eap_sim_derive_keys_reauth(data->counter, sm->identity, in eap_sim_build_reauth() 295 if (eap_sim_build_encr(sm, data, msg, data->counter, data->nonce_s)) { in eap_sim_build_reauth() 339 data->counter); in eap_sim_build_notification() [all …]
|
| D | eap_server_aka.c | 41 u16 counter; member 113 if (data->reauth->counter > sm->cfg->eap_sim_aka_fast_reauth_limit) { in eap_aka_check_identity_reauth() 135 data->reauth->counter); in eap_aka_check_identity_reauth() 138 data->counter = data->reauth->counter; in eap_aka_check_identity_reauth() 432 struct eap_sim_msg *msg, u16 counter, in eap_aka_build_encr() argument 453 } else if (data->counter <= EAP_AKA_MAX_FAST_REAUTHS) { in eap_aka_build_encr() 466 counter == 0 && nonce_s == NULL) in eap_aka_build_encr() 473 if (counter > 0) { in eap_aka_build_encr() 474 wpa_printf(MSG_DEBUG, " *AT_COUNTER (%u)", counter); in eap_aka_build_encr() 475 eap_sim_msg_add(msg, EAP_SIM_AT_COUNTER, counter, NULL, 0); in eap_aka_build_encr() [all …]
|
| D | eap_sim_db.h | 58 char *reauth_id, u16 counter, const u8 *mk); 61 char *reauth_id, u16 counter, const u8 *k_encr, 71 u16 counter; member
|
| D | eap_sim_db.c | 244 char *reauth_id, u16 counter, const u8 *mk, in db_add_reauth() argument 264 permanent, reauth_id, counter); in db_add_reauth() 319 reauth->counter = atoi(argv[i]); in get_reauth_cb() 679 static int counter = 0; in eap_sim_db_open_socket() local 693 "/tmp/eap_sim_db_%d-%d", getpid(), counter++); in eap_sim_db_open_socket() 1158 char *reauth_id, u16 counter) in eap_sim_db_add_reauth_data() argument 1191 r->counter = counter; in eap_sim_db_add_reauth_data() 1214 char *reauth_id, u16 counter, const u8 *mk) in eap_sim_db_add_reauth() argument 1223 return db_add_reauth(data, permanent, reauth_id, counter, mk, in eap_sim_db_add_reauth() 1226 r = eap_sim_db_add_reauth_data(data, permanent, reauth_id, counter); in eap_sim_db_add_reauth() [all …]
|
| /hostap-latest/src/eap_peer/ |
| D | eap_sim.c | 45 unsigned int counter, counter_too_small; member 697 unsigned int counter; in eap_sim_response_reauth() local 710 counter = data->counter_too_small; in eap_sim_response_reauth() 712 counter = data->counter; in eap_sim_response_reauth() 714 wpa_printf(MSG_DEBUG, " *AT_COUNTER %d", counter); in eap_sim_response_reauth() 715 eap_sim_msg_add(msg, EAP_SIM_AT_COUNTER, counter, NULL, 0); in eap_sim_response_reauth() 748 wpa_printf(MSG_DEBUG, " *AT_COUNTER %d", data->counter); in eap_sim_response_notification() 749 eap_sim_msg_add(msg, EAP_SIM_AT_COUNTER, data->counter, in eap_sim_response_notification() 969 data->counter = 0; in eap_sim_process_challenge() 995 if (eattr.counter < 0 || (size_t) eattr.counter != data->counter) { in eap_sim_process_notification_reauth() [all …]
|
| D | eap_aka.c | 43 unsigned int counter, counter_too_small; member 820 unsigned int counter; in eap_aka_response_reauth() local 833 counter = data->counter_too_small; in eap_aka_response_reauth() 835 counter = data->counter; in eap_aka_response_reauth() 837 wpa_printf(MSG_DEBUG, " *AT_COUNTER %d", counter); in eap_aka_response_reauth() 838 eap_sim_msg_add(msg, EAP_SIM_AT_COUNTER, counter, NULL, 0); in eap_aka_response_reauth() 872 wpa_printf(MSG_DEBUG, " *AT_COUNTER %d", data->counter); in eap_aka_response_notification() 873 eap_sim_msg_add(msg, EAP_SIM_AT_COUNTER, data->counter, in eap_aka_response_notification() 1233 data->counter = 0; in eap_aka_process_challenge() 1259 if (eattr.counter < 0 || (size_t) eattr.counter != data->counter) { in eap_aka_process_notification_reauth() [all …]
|
| /hostap-latest/wpaspy/ |
| D | wpaspy.py | 14 counter = 0 variable 18 global counter 36 self.local = "/tmp/wpa_ctrl_" + str(os.getpid()) + '-' + str(counter) 37 counter += 1
|
| /hostap-latest/wlantest/ |
| D | ctrl.c | 347 u32 counter; in ctrl_get_sta_counter() local 360 counter = WPA_GET_BE32(addr); in ctrl_get_sta_counter() 361 if (counter >= NUM_WLANTEST_STA_COUNTER) { in ctrl_get_sta_counter() 371 sta->counters[counter]); in ctrl_get_sta_counter() 382 u32 counter; in ctrl_get_bss_counter() local 394 counter = WPA_GET_BE32(addr); in ctrl_get_bss_counter() 395 if (counter >= NUM_WLANTEST_BSS_COUNTER) { in ctrl_get_bss_counter() 405 bss->counters[counter]); in ctrl_get_bss_counter() 419 u32 counter; in ctrl_get_tdls_counter() local 436 counter = WPA_GET_BE32(addr); in ctrl_get_tdls_counter() [all …]
|
| /hostap-latest/src/common/ |
| D | sae.c | 287 u8 counter, k; in sae_derive_pwe_ecc() local 341 addr[1] = &counter; in sae_derive_pwe_ecc() 342 len[1] = sizeof(counter); in sae_derive_pwe_ecc() 351 for (counter = 1; counter <= k || !found; counter++) { in sae_derive_pwe_ecc() 354 if (counter > 200) { in sae_derive_pwe_ecc() 360 wpa_printf(MSG_DEBUG, "SAE: counter = %03u", counter); in sae_derive_pwe_ecc() 460 u8 counter, k, sel_counter = 0; in sae_derive_pwe_ffc() local 493 addr[1] = &counter; in sae_derive_pwe_ffc() 494 len[1] = sizeof(counter); in sae_derive_pwe_ffc() 498 for (counter = 1; counter <= k || !found; counter++) { in sae_derive_pwe_ffc() [all …]
|
| D | wpa_ctrl.c | 106 static int counter = 0; in wpa_ctrl_open2() local 126 counter++; in wpa_ctrl_open2() 132 cli_path, (int) getpid(), counter); in wpa_ctrl_open2() 138 (int) getpid(), counter); in wpa_ctrl_open2()
|
| /hostap-latest/src/l2_packet/ |
| D | l2_packet_privsep.c | 138 static unsigned int counter = 0; in l2_packet_init() local 159 own_dir, getpid(), counter++); in l2_packet_init()
|