/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/ |
D | genie_mesh.c | 258 uint8_t payload[3] = {0}; in genie_indicate_hw_reset_event() local 260 payload[0] = GENIE_MODEL_ATTR_DEVICE_EVENT & 0xff; in genie_indicate_hw_reset_event() 261 payload[1] = (GENIE_MODEL_ATTR_DEVICE_EVENT >> 8) & 0xff; in genie_indicate_hw_reset_event() 262 payload[2] = (uint8_t)EVENT_HW_RESET; in genie_indicate_hw_reset_event() 266 reply_msg.data = payload; in genie_indicate_hw_reset_event() 283 uint8_t payload[10] = {0}; in genie_timer_operate_status() local 290 payload[0] = TIMER_ATTR_UNIX_TIME & 0xff; in genie_timer_operate_status() 291 payload[1] = (TIMER_ATTR_UNIX_TIME >> 8) & 0xff; in genie_timer_operate_status() 292 payload[2] = (uint8_t)(unix_time & 0xFF); in genie_timer_operate_status() 293 payload[3] = (uint8_t)((unix_time >> 8) & 0xFF); in genie_timer_operate_status() [all …]
|
/hal_espressif-3.5.0/components/wpa_supplicant/src/tls/ |
D | x509v3.c | 203 pos = hdr.payload; in x509_parse_algorithm_identifier() 245 pos = hdr.payload; in x509_parse_public_key() 266 pos = hdr.payload; in x509_parse_public_key() 321 pos = hdr.payload; in x509_parse_name() 341 set_pos = hdr.payload; in x509_parse_name() 342 pos = set_end = hdr.payload + hdr.length; in x509_parse_name() 354 seq_pos = hdr.payload; in x509_parse_name() 355 seq_end = hdr.payload + hdr.length; in x509_parse_name() 420 os_memcpy(name->email, hdr.payload, hdr.length); in x509_parse_name() 437 hdr.payload, hdr.length); in x509_parse_name() [all …]
|
D | pkcs8.c | 36 pos = hdr.payload; in pkcs8_key_import() 52 if (bignum_set_unsigned_bin(zero, hdr.payload, hdr.length) < 0) { in pkcs8_key_import() 57 pos = hdr.payload + hdr.length; in pkcs8_key_import() 80 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) { in pkcs8_key_import() 102 pos = hdr.payload + hdr.length; in pkcs8_key_import() 116 crypto_rsa_import_private_key(hdr.payload, hdr.length); in pkcs8_key_import() 149 pos = hdr.payload; in pkcs8_enc_key_import() 162 enc_alg = hdr.payload; in pkcs8_enc_key_import() 164 pos = hdr.payload + hdr.length; in pkcs8_enc_key_import() 176 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length, in pkcs8_enc_key_import()
|
D | pkcs5.c | 90 pos = hdr.payload; in pkcs5_get_params() 91 end = hdr.payload + hdr.length; in pkcs5_get_params() 103 pos = hdr.payload + hdr.length; in pkcs5_get_params() 104 os_memcpy(params->salt, hdr.payload, hdr.length); in pkcs5_get_params() 117 params->iter_count = *hdr.payload; in pkcs5_get_params() 119 params->iter_count = WPA_GET_BE16(hdr.payload); in pkcs5_get_params() 121 params->iter_count = WPA_GET_BE32(hdr.payload); in pkcs5_get_params() 125 hdr.payload, hdr.length); in pkcs5_get_params()
|
D | tlsv1_server_write.c | 508 u8 payload[4]; in tls_write_server_hello_done() local 515 pos = payload; in tls_write_server_hello_done() 524 *msgpos, end - *msgpos, payload, pos - payload, in tls_write_server_hello_done() 532 tls_verify_hash_add(&conn->verify, payload, pos - payload); in tls_write_server_hello_done() 544 u8 payload[1]; in tls_write_server_change_cipher_spec() local 548 payload[0] = TLS_CHANGE_CIPHER_SPEC; in tls_write_server_change_cipher_spec() 551 *msgpos, end - *msgpos, payload, sizeof(payload), in tls_write_server_change_cipher_spec()
|
/hal_espressif-3.5.0/examples/protocols/esp_local_ctrl/scripts/ |
D | proto_lc.py | 42 payload = local_ctrl_pb2.CmdGetPropertyCount() 43 req.cmd_get_prop_count.MergeFrom(payload) 61 payload = local_ctrl_pb2.CmdGetPropertyValues() 62 payload.indices.extend(indices) 63 req.cmd_get_prop_vals.MergeFrom(payload) 87 payload = local_ctrl_pb2.CmdSetPropertyValues() 89 prop = payload.props.add() 92 req.cmd_set_prop_vals.MergeFrom(payload)
|
/hal_espressif-3.5.0/components/lwip/test_afl_host/ |
D | network_mock.c | 43 return ((u8_t*)q->payload)[q_idx]; in pbuf_try_get_at() 55 ((u8_t*)q->payload)[q_idx] = data; in pbuf_put_at() 66 return ((u8_t*)q->payload)[q_idx]; in pbuf_get_at() 99 p->payload = malloc(length); in pbuf_alloc() 106 if (p->payload) { in pbuf_free() 107 free(p->payload); in pbuf_free() 108 p->payload = NULL; in pbuf_free() 174 free(p->payload); in pbuf_realloc() 175 p->payload = buf; in pbuf_realloc() 208 MEMCPY(&((char*)dataptr)[left], &((char*)p->payload)[offset], buf_copy_len); in pbuf_copy_partial()
|
/hal_espressif-3.5.0/examples/provisioning/legacy/softap_prov/main/ |
D | app_main.c | 114 char payload[150] = {0}; in softap_prov_print_qr() local 122 snprintf(payload, sizeof(payload), "{\"ver\":\"%s\",\"name\":\"%s\"" \ in softap_prov_print_qr() 126 snprintf(payload, sizeof(payload), "{\"ver\":\"%s\",\"name\":\"%s\"" \ in softap_prov_print_qr() 133 esp_qrcode_generate(&cfg, payload); in softap_prov_print_qr() 135 …ode is not visible, copy paste the below URL in a browser.\n%s?data=%s", QRCODE_BASE_URL, payload); in softap_prov_print_qr()
|
/hal_espressif-3.5.0/examples/provisioning/legacy/ble_prov/main/ |
D | app_main.c | 127 char payload[150] = {0}; in ble_prov_print_qr() local 135 snprintf(payload, sizeof(payload), "{\"ver\":\"%s\",\"name\":\"%s\"" \ in ble_prov_print_qr() 139 snprintf(payload, sizeof(payload), "{\"ver\":\"%s\",\"name\":\"%s\"" \ in ble_prov_print_qr() 146 esp_qrcode_generate(&cfg, payload); in ble_prov_print_qr() 148 …ode is not visible, copy paste the below URL in a browser.\n%s?data=%s", QRCODE_BASE_URL, payload); in ble_prov_print_qr()
|
/hal_espressif-3.5.0/examples/protocols/mqtt/ssl/ |
D | mqtt_ssl_example_test.py | 43 if bin[:bin_size] == msg.payload[:bin_size]: 49 fw.write(msg.payload) 52 payload = msg.payload.decode() 53 if not event_client_received_correct.is_set() and payload == 'data': 56 if msg.topic == '/topic/qos0' and payload == 'data': 58 message_log += 'Received data:' + msg.topic + ' ' + payload + '\n'
|
/hal_espressif-3.5.0/examples/provisioning/wifi_prov_mgr/main/ |
D | app_main.c | 149 char payload[150] = {0}; in wifi_prov_print_qr() local 151 snprintf(payload, sizeof(payload), "{\"ver\":\"%s\",\"name\":\"%s\"" \ in wifi_prov_print_qr() 155 snprintf(payload, sizeof(payload), "{\"ver\":\"%s\",\"name\":\"%s\"" \ in wifi_prov_print_qr() 162 esp_qrcode_generate(&cfg, payload); in wifi_prov_print_qr() 164 …ode is not visible, copy paste the below URL in a browser.\n%s?data=%s", QRCODE_BASE_URL, payload); in wifi_prov_print_qr()
|
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | ccm_mode.c | 139 unsigned int alen, const uint8_t *payload, in tc_ccm_generation_encryption() argument 146 ((plen > 0) && (payload == (uint8_t *) 0)) || in tc_ccm_generation_encryption() 174 ccm_cbc_mac(tag, payload, plen, 0, c->sched); in tc_ccm_generation_encryption() 184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption() 200 unsigned int alen, const uint8_t *payload, in tc_ccm_decryption_verification() argument 207 ((plen > 0) && (payload == (uint8_t *) 0)) || in tc_ccm_decryption_verification() 229 ccm_ctr_mode(out, plen - c->mlen, payload, plen - c->mlen, b, c->sched); in tc_ccm_decryption_verification() 236 tag[i] = *(payload + plen - c->mlen + i) ^ b[i]; in tc_ccm_decryption_verification()
|
/hal_espressif-3.5.0/components/esp_eth/test_apps/ |
D | component_ut_test.py | 56 payload = bytearray(1010) 57 for i, _ in enumerate(payload): 58 payload[i] = i & 0xff 59 eth_frame = Ether(dst=mac, src=so.getsockname()[4], type=0x2222) / raw(payload) 85 payload = bytes.fromhex('ff') # DUMMY_TRAFFIC code 86 payload += bytes(1485) 87 eth_frame = Ether(dst=mac, src=so.getsockname()[4], type=0x2222) / raw(payload)
|
/hal_espressif-3.5.0/components/wpa_supplicant/esp_supplicant/src/ |
D | esp_common.c | 45 os_memcpy(frm->payload, frame, len); in handle_action_frm() 55 u8 *payload, size_t len, u32 rssi) in handle_rrm_frame() argument 57 if (payload[0] == WLAN_RRM_NEIGHBOR_REPORT_RESPONSE) { in handle_rrm_frame() 59 wpas_rrm_process_neighbor_rep(wpa_s, payload + 1, len - 1); in handle_rrm_frame() 60 } else if (payload[0] == WLAN_RRM_RADIO_MEASUREMENT_REQUEST) { in handle_rrm_frame() 63 sender, payload + 1, len - 1); in handle_rrm_frame() 64 } else if (payload[0] == WLAN_RRM_LINK_MEASUREMENT_REQUEST) { in handle_rrm_frame() 67 payload + 1, len - 1, rssi); in handle_rrm_frame() 71 static int mgmt_rx_action(u8 *sender, u8 *payload, size_t len, u8 channel, u32 rssi) in mgmt_rx_action() argument 83 category = *payload++; in mgmt_rx_action() [all …]
|
/hal_espressif-3.5.0/examples/protocols/mqtt/ws/ |
D | mqtt_ws_example_test.py | 34 payload = msg.payload.decode() 35 if not event_client_received_correct.is_set() and payload == 'data': 37 if msg.topic == '/topic/qos0' and payload == 'data': 39 message_log += 'Received data:' + msg.topic + ' ' + payload + '\n'
|
/hal_espressif-3.5.0/examples/openthread/ot_cli/main/ |
D | esp_ot_udp_socket.c | 22 char *payload = "This message is from server\n"; in udp_socket_server_task() local 69 …err = sendto(listen_sock, payload, strlen(payload), 0, (struct sockaddr *)&source_addr, sizeof(sou… in udp_socket_server_task() 84 char *payload = "This message is from client\n"; in udp_socket_client_task() local 101 …err = sendto(client_sock, payload, strlen(payload), 0, (struct sockaddr *)&dest_addr, sizeof(dest_… in udp_socket_client_task()
|
/hal_espressif-3.5.0/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/ |
D | main.c | 148 static uint8_t payload[NOTIFY_THROUGHPUT_PAYLOAD] = {0};/* Data payload */ in notify_task() local 153 payload[0] = dummy; /* storing dummy data */ in notify_task() 154 payload[1] = rand(); in notify_task() 155 payload[99] = rand(); in notify_task() 189 om = ble_hs_mbuf_from_flat(payload, sizeof(payload)); in notify_task() 194 om = ble_hs_mbuf_from_flat(payload, sizeof(payload)); in notify_task()
|
/hal_espressif-3.5.0/examples/protocols/mqtt/wss/ |
D | mqtt_wss_example_test.py | 35 payload = msg.payload.decode() 36 if not event_client_received_correct.is_set() and payload == 'data': 38 if msg.topic == '/topic/qos0' and payload == 'data': 40 message_log += 'Received data:' + msg.topic + ' ' + payload + '\n'
|
/hal_espressif-3.5.0/components/esp_http_server/src/ |
D | httpd_ws.c | 231 static esp_err_t httpd_ws_unmask_payload(uint8_t *payload, size_t len, const uint8_t *mask_key) in httpd_ws_unmask_payload() argument 233 if (len < 1 || !payload) { in httpd_ws_unmask_payload() 239 payload[idx] = (payload[idx] ^ mask_key[idx % 4]); in httpd_ws_unmask_payload() 340 if (frame->payload == NULL) { in httpd_ws_recv_frame() 349 int read_len = httpd_recv_with_opt(req, (char *)frame->payload + offset, left_len, false); in httpd_ws_recv_frame() 361 httpd_ws_unmask_payload(frame->payload, frame->len, aux->mask_key); in httpd_ws_recv_frame() 425 if(frame->len > 0 && frame->payload != NULL) { in httpd_ws_send_frame_async() 426 if (sess->send_fn(hd, fd, (const char *)frame->payload, frame->len, 0) < 0) { in httpd_ws_send_frame_async() 475 frame.payload = frame_buf; in httpd_ws_get_frame_type()
|
/hal_espressif-3.5.0/components/lwip/port/esp32/netif/ |
D | wlanif.c | 137 ret = esp_netif_transmit_wrap(esp_netif, q->payload, q->len, q); in low_level_output() 148 ret = esp_netif_transmit_wrap(esp_netif, q->payload, q->len, q); in low_level_output() 194 memcpy(p->payload, buffer, len); in wlanif_input() 202 p->payload = buffer; in wlanif_input()
|
D | openthreadif.c | 39 ret = esp_netif_transmit(esp_netif, q->payload, q->len); in openthread_output_ip6() 53 ret = esp_netif_transmit(esp_netif, q->payload, q->len); in openthread_output_ip6() 82 if (unlikely(otMessageRead(message, 0, p->payload, len) != OT_ERROR_NONE)) { in openthread_netif_input()
|
/hal_espressif-3.5.0/examples/protocols/http_server/ws_echo_server/main/ |
D | ws_echo_server.c | 48 ws_pkt.payload = (uint8_t*)data; in ws_async_send() 92 ws_pkt.payload = buf; in echo_handler() 100 ESP_LOGI(TAG, "Got packet with message: %s", ws_pkt.payload); in echo_handler() 104 strcmp((char*)ws_pkt.payload,"Trigger async") == 0) { in echo_handler()
|
/hal_espressif-3.5.0/examples/network/simple_sniffer/main/ |
D | cmd_sniffer.c | 55 void *payload; member 121 packet_info->payload = packet_to_queue; in queue_packet() 126 free(packet_info->payload); in queue_packet() 146 queue_packet(sniffer->payload, &packet_info); in wifi_sniffer_cb() 184 if (packet_capture(packet_info.payload, packet_info.length, packet_info.seconds, in sniffer_task() 188 free(packet_info.payload); in sniffer_task() 241 free(packet_info.payload); in sniffer_stop()
|
/hal_espressif-3.5.0/examples/protocols/sockets/tcp_client/main/ |
D | tcp_client.c | 37 static const char *payload = "Message from ESP32 "; variable 81 int err = send(sock, payload, strlen(payload), 0); in tcp_client_task()
|
/hal_espressif-3.5.0/examples/protocols/sockets/udp_client/main/ |
D | udp_client.c | 39 static const char *payload = "Message from ESP32 "; variable 80 …int err = sendto(sock, payload, strlen(payload), 0, (struct sockaddr *)&dest_addr, sizeof(dest_add… in udp_client_task()
|