Home
last modified time | relevance | path

Searched refs:WPA_PUT_BE16 (Results 1 – 25 of 38) sorted by relevance

12

/external/wpa_supplicant_8/src/tls/
Dtlsv1_client_write.c107 WPA_PUT_BE16(pos, tls_version); in tls_send_client_hello()
117 WPA_PUT_BE16(pos, 2 * conn->num_cipher_suites); in tls_send_client_hello()
120 WPA_PUT_BE16(pos, conn->cipher_suites[i]); in tls_send_client_hello()
138 WPA_PUT_BE16(pos, TLS_EXT_SIGNATURE_ALGORITHMS); in tls_send_client_hello()
141 WPA_PUT_BE16(pos, 8); in tls_send_client_hello()
144 WPA_PUT_BE16(pos, 6); in tls_send_client_hello()
166 WPA_PUT_BE16(pos, TLS_EXT_STATUS_REQUEST); in tls_send_client_hello()
169 WPA_PUT_BE16(pos, 5); in tls_send_client_hello()
194 WPA_PUT_BE16(pos, 0); /* responder_id_list(empty) */ in tls_send_client_hello()
196 WPA_PUT_BE16(pos, 0); /* request_extensions(empty) */ in tls_send_client_hello()
[all …]
Dtlsv1_server_write.c88 WPA_PUT_BE16(pos, conn->rl.tls_version); in tls_write_server_hello()
98 WPA_PUT_BE16(pos, conn->cipher_suite); in tls_write_server_hello()
110 WPA_PUT_BE16(pos, TLS_EXT_STATUS_REQUEST); in tls_write_server_hello()
113 WPA_PUT_BE16(pos, 0); in tls_write_server_hello()
122 WPA_PUT_BE16(pos, TLS_EXT_STATUS_REQUEST_V2); in tls_write_server_hello()
125 WPA_PUT_BE16(pos, 0); in tls_write_server_hello()
168 WPA_PUT_BE16(ext_start, pos - ext_start - 2); in tls_write_server_hello()
508 WPA_PUT_BE16(pos, dh_p_len); in tls_write_server_key_exchange()
522 WPA_PUT_BE16(pos, conn->cred->dh_g_len); in tls_write_server_key_exchange()
536 WPA_PUT_BE16(pos, dh_ys_len); in tls_write_server_key_exchange()
[all …]
Dtlsv1_record.c167 WPA_PUT_BE16(pos, rl->tls_version); in tlsv1_record_send()
171 WPA_PUT_BE16(length, payload_len); in tlsv1_record_send()
254 WPA_PUT_BE16(length, pos - length - 2); in tlsv1_record_send()
448 WPA_PUT_BE16(len, plen); in tlsv1_record_receive()
Dtlsv1_client.c43 WPA_PUT_BE16(pre_master_secret, TLS_VERSION); in tls_derive_pre_master_secret()
558 WPA_PUT_BE16(pos, context_len); in tlsv1_client_prf()
723 WPA_PUT_BE16(pos, ext_type); in tlsv1_client_hello_ext()
725 WPA_PUT_BE16(pos, data_len); in tlsv1_client_hello_ext()
/external/wpa_supplicant_8/src/crypto/
Daes-ccm.c41 WPA_PUT_BE16(&b[AES_BLOCK_SIZE - L], plain_len); in aes_ccm_auth_start()
49 WPA_PUT_BE16(aad_buf, aad_len); in aes_ccm_auth_start()
100 WPA_PUT_BE16(&a[AES_BLOCK_SIZE - 2], i); in aes_ccm_encr()
108 WPA_PUT_BE16(&a[AES_BLOCK_SIZE - 2], i); in aes_ccm_encr()
124 WPA_PUT_BE16(&a[AES_BLOCK_SIZE - 2], 0); in aes_ccm_encr_auth()
139 WPA_PUT_BE16(&a[AES_BLOCK_SIZE - 2], 0); in aes_ccm_decr_auth()
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.c864 WPA_PUT_BE16(t->transform_id, data->proposal.encr); in ikev2_build_sar1()
871 WPA_PUT_BE16(t->transform_length, plen); in ikev2_build_sar1()
875 WPA_PUT_BE16(t->transform_length, sizeof(*t)); in ikev2_build_sar1()
877 WPA_PUT_BE16(t->transform_id, data->proposal.prf); in ikev2_build_sar1()
881 WPA_PUT_BE16(t->transform_length, sizeof(*t)); in ikev2_build_sar1()
883 WPA_PUT_BE16(t->transform_id, data->proposal.integ); in ikev2_build_sar1()
886 WPA_PUT_BE16(t->transform_length, sizeof(*t)); in ikev2_build_sar1()
888 WPA_PUT_BE16(t->transform_id, data->proposal.dh); in ikev2_build_sar1()
891 WPA_PUT_BE16(p->proposal_length, plen); in ikev2_build_sar1()
894 WPA_PUT_BE16(phdr->payload_length, plen); in ikev2_build_sar1()
[all …]
Deap_fast_pac.c896 WPA_PUT_BE16(pos, EAP_FAST_PAC_BINARY_FORMAT_VERSION); in eap_fast_save_pac_bin()
901 WPA_PUT_BE16(pos, pac->pac_type); in eap_fast_save_pac_bin()
905 WPA_PUT_BE16(pos, pac->pac_opaque_len); in eap_fast_save_pac_bin()
909 WPA_PUT_BE16(pos, pac->pac_info_len); in eap_fast_save_pac_bin()
Deap_teap_pac.c900 WPA_PUT_BE16(pos, EAP_TEAP_PAC_BINARY_FORMAT_VERSION); in eap_teap_save_pac_bin()
905 WPA_PUT_BE16(pos, pac->pac_type); in eap_teap_save_pac_bin()
909 WPA_PUT_BE16(pos, pac->pac_opaque_len); in eap_teap_save_pac_bin()
913 WPA_PUT_BE16(pos, pac->pac_info_len); in eap_teap_save_pac_bin()
Dtncc.c1267 WPA_PUT_BE16(ssoh_len, end - ssoh_len - 2); in tncc_build_soh()
1273 WPA_PUT_BE16(tlv_len, end - tlv_len - 2); in tncc_build_soh()
1274 WPA_PUT_BE16(tlv_len2, end - tlv_len2 - 2); in tncc_build_soh()
1275 WPA_PUT_BE16(outer_len, end - outer_len - 2); in tncc_build_soh()
1276 WPA_PUT_BE16(inner_len, end - inner_len - 2); in tncc_build_soh()
Deap_mschapv2.c183 WPA_PUT_BE16(ms->ms_length, ms_len); in eap_mschapv2_challenge_reply()
548 WPA_PUT_BE16(ms->ms_length, ms_len); in eap_mschapv2_change_password()
Deap.c751 WPA_PUT_BE16(len, EAP_EMSK_NAME_LEN); in eap_peer_erp_init()
764 WPA_PUT_BE16(len, emsk_len); in eap_peer_erp_init()
775 WPA_PUT_BE16(&ctx[1], erp->rRK_len); in eap_peer_erp_init()
1948 WPA_PUT_BE16(seed, seq); in eap_peer_finish()
1949 WPA_PUT_BE16(&seed[2], erp->rRK_len); in eap_peer_finish()
/external/wpa_supplicant_8/src/eap_server/
Dikev2.c927 WPA_PUT_BE16(t->transform_id, data->proposal.encr); in ikev2_build_sai()
934 WPA_PUT_BE16(t->transform_length, plen); in ikev2_build_sai()
938 WPA_PUT_BE16(t->transform_length, sizeof(*t)); in ikev2_build_sai()
940 WPA_PUT_BE16(t->transform_id, data->proposal.prf); in ikev2_build_sai()
944 WPA_PUT_BE16(t->transform_length, sizeof(*t)); in ikev2_build_sai()
946 WPA_PUT_BE16(t->transform_id, data->proposal.integ); in ikev2_build_sai()
949 WPA_PUT_BE16(t->transform_length, sizeof(*t)); in ikev2_build_sai()
951 WPA_PUT_BE16(t->transform_id, data->proposal.dh); in ikev2_build_sai()
954 WPA_PUT_BE16(p->proposal_length, plen); in ikev2_build_sai()
957 WPA_PUT_BE16(phdr->payload_length, plen); in ikev2_build_sai()
[all …]
Deap_server_mschapv2.c125 WPA_PUT_BE16(ms->ms_length, ms_len); in eap_mschapv2_build_challenge()
163 WPA_PUT_BE16(ms->ms_length, ms_len); in eap_mschapv2_build_success_req()
206 WPA_PUT_BE16(ms->ms_length, ms_len); in eap_mschapv2_build_failure_req()
Deap_server_gpsk.c79 WPA_PUT_BE16(data->csuite_list[data->csuite_count].specifier, in eap_gpsk_init()
87 WPA_PUT_BE16(data->csuite_list[data->csuite_count].specifier, in eap_gpsk_init()
175 WPA_PUT_BE16(csuite->specifier, data->specifier); in eap_gpsk_build_gpsk_3()
Deap_server.c462 WPA_PUT_BE16(len, EAP_EMSK_NAME_LEN); in eap_server_erp_init()
476 WPA_PUT_BE16(len, emsk_len); in eap_server_erp_init()
487 WPA_PUT_BE16(&ctx[1], erp->rRK_len); in eap_server_erp_init()
775 WPA_PUT_BE16(seed, seq); in erp_send_finish_reauth()
776 WPA_PUT_BE16(&seed[2], erp->rRK_len); in erp_send_finish_reauth()
Deap_server_fast.c765 WPA_PUT_BE16((u8 *) &result->tlv_type, in eap_fast_build_pac()
767 WPA_PUT_BE16((u8 *) &result->length, 2); in eap_fast_build_pac()
768 WPA_PUT_BE16((u8 *) &result->status, EAP_TLV_RESULT_SUCCESS); in eap_fast_build_pac()
Deap_server_teap.c797 WPA_PUT_BE16((u8 *) &result->tlv_type, in eap_teap_build_pac()
799 WPA_PUT_BE16((u8 *) &result->length, 2); in eap_teap_build_pac()
800 WPA_PUT_BE16((u8 *) &result->status, TEAP_STATUS_SUCCESS); in eap_teap_build_pac()
/external/wpa_supplicant_8/src/eap_common/
Deap_gpsk_common.c59 WPA_PUT_BE16(ibuf, i); in eap_gpsk_gkdf_cmac()
94 WPA_PUT_BE16(ibuf, i); in eap_gpsk_gkdf_sha256()
145 WPA_PUT_BE16(pos, psk_len); in eap_gpsk_derive_keys_helper()
151 WPA_PUT_BE16(pos, csuite_specifier); /* CSuite/Specifier */ in eap_gpsk_derive_keys_helper()
383 WPA_PUT_BE16(pos, csuite_specifier); /* CSuite/Specifier */ in eap_gpsk_derive_mid_helper()
Deap_sim_common.c48 WPA_PUT_BE16(sel_ver, selected_version); in eap_sim_derive_mk()
132 WPA_PUT_BE16(counter, _counter); in eap_sim_derive_keys_reauth()
338 WPA_PUT_BE16(seed3, counter); in eap_aka_prime_derive_keys_reauth()
474 WPA_PUT_BE16(l0, network_name_len); in eap_aka_prime_derive_ck_ik_prime()
479 WPA_PUT_BE16(l1, 6); in eap_aka_prime_derive_ck_ik_prime()
/external/wpa_supplicant_8/src/wps/
Dwps_common.c467 WPA_PUT_BE16(dev_type, atoi(str)); in wps_dev_type_str2bin()
478 WPA_PUT_BE16(&dev_type[6], atoi(pos)); in wps_dev_type_str2bin()
734 WPA_PUT_BE16(len, wpabuf_len(msg) - 2); in wps_build_nfc_handover_req()
817 WPA_PUT_BE16(len, wpabuf_len(msg) - 2); in wps_build_nfc_handover_sel()
Dwps_attr_build.c259 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); in wps_build_wfa_ext()
/external/wpa_supplicant_8/src/utils/
Dwpabuf.h139 WPA_PUT_BE16(pos, data); in wpabuf_put_be16()
/external/wpa_supplicant_8/src/pae/
Dieee802_1x_key.c64 WPA_PUT_BE16(&buf[buf_len - 2], ret_bits); in aes_kdf()
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa.c131 WPA_PUT_BE16((u8 *) (key + 1), AES_BLOCK_SIZE + key_data_len); in wpa_eapol_key_send()
232 WPA_PUT_BE16(reply->key_info, key_info); in wpa_sm_key_request()
233 WPA_PUT_BE16(reply->key_length, 0); in wpa_sm_key_request()
239 WPA_PUT_BE16(mic + mic_len, 0); in wpa_sm_key_request()
556 WPA_PUT_BE16(reply->key_info, key_info); in wpa_supplicant_send_2_of_4()
558 WPA_PUT_BE16(reply->key_length, 0); in wpa_supplicant_send_2_of_4()
567 WPA_PUT_BE16(key_mic + mic_len, wpa_ie_len); /* Key Data Length */ in wpa_supplicant_send_2_of_4()
1637 WPA_PUT_BE16(reply->key_info, key_info); in wpa_supplicant_send_4_of_4()
1639 WPA_PUT_BE16(reply->key_length, 0); in wpa_supplicant_send_4_of_4()
1646 WPA_PUT_BE16(key_mic + mic_len, 0); in wpa_supplicant_send_4_of_4()
[all …]
/external/wpa_supplicant_8/src/radius/
Dradius.c1069 WPA_PUT_BE16(saltbuf, salt); in encrypt_ms_key()
1219 WPA_PUT_BE16(pos, salt); in radius_msg_add_mppe_keys()
1244 WPA_PUT_BE16(pos, salt); in radius_msg_add_mppe_keys()

12