Lines Matching refs:incoming_access_decrypted
103 static mesh_access_pdu_t * incoming_access_decrypted; variable
385 incoming_access_decrypted = NULL; in mesh_upper_transport_process_access_message_done()
426 …H_TRANSPORT_PDU_RECEIVED, MESH_TRANSPORT_STATUS_SUCCESS, (mesh_pdu_t *) incoming_access_decrypted); in mesh_upper_transport_deliver_access_message()
477 …uint8_t transmic_len = ((incoming_access_decrypted->flags & MESH_TRANSPORT_FLAG_TRANSMIC_64) != 0)… in mesh_upper_transport_validate_access_message_ccm()
478 uint8_t * upper_transport_pdu = incoming_access_decrypted->data; in mesh_upper_transport_validate_access_message_ccm()
479 uint8_t upper_transport_pdu_len = incoming_access_decrypted->len - transmic_len; in mesh_upper_transport_validate_access_message_ccm()
492 incoming_access_decrypted->len -= transmic_len; in mesh_upper_transport_validate_access_message_ccm()
495 if (mesh_network_address_virtual(incoming_access_decrypted->dst)){ in mesh_upper_transport_validate_access_message_ccm()
496 incoming_access_decrypted->dst = mesh_transport_key_it.address->pseudo_dst; in mesh_upper_transport_validate_access_message_ccm()
504 uint8_t akf = incoming_access_decrypted->akf_aid_control & 0x40; in mesh_upper_transport_validate_access_message_ccm()
511 mesh_upper_transport_process_access_message_done(incoming_access_decrypted); in mesh_upper_transport_validate_access_message_ccm()
518 …uint8_t transmic_len = ((incoming_access_decrypted->flags & MESH_TRANSPORT_FLAG_TRANSMIC_64) != … in mesh_upper_transport_validate_access_message_digest()
519 uint8_t upper_transport_pdu_len = incoming_access_decrypted->len - transmic_len; in mesh_upper_transport_validate_access_message_digest()
520 uint8_t * upper_transport_pdu_data_out = incoming_access_decrypted->data; in mesh_upper_transport_validate_access_message_digest()
534 …d)memcpy(upper_transport_pdu_data_out, &unsegmented_pdu->data[10], incoming_access_decrypted->len); in mesh_upper_transport_validate_access_message_digest()
546 …uint8_t transmic_len = ((incoming_access_decrypted->flags & MESH_TRANSPORT_FLAG_TRANSMIC_64) != … in mesh_upper_transport_validate_access_message()
547 uint8_t * upper_transport_pdu_data = incoming_access_decrypted->data; in mesh_upper_transport_validate_access_message()
548 uint8_t upper_transport_pdu_len = incoming_access_decrypted->len - transmic_len; in mesh_upper_transport_validate_access_message()
552 mesh_upper_transport_process_access_message_done(incoming_access_decrypted); in mesh_upper_transport_validate_access_message()
559 …ort_segmented_setup_application_nonce(application_nonce, (mesh_pdu_t *) incoming_access_decrypted); in mesh_upper_transport_validate_access_message()
561 …ransport_segmented_setup_device_nonce(application_nonce, (mesh_pdu_t *) incoming_access_decrypted); in mesh_upper_transport_validate_access_message()
566 incoming_access_decrypted->appkey_index = message_key->appkey_index; in mesh_upper_transport_validate_access_message()
573 if (mesh_network_address_virtual(incoming_access_decrypted->dst)){ in mesh_upper_transport_validate_access_message()
587 …uint8_t transmic_len = ((incoming_access_decrypted->flags & MESH_TRANSPORT_FLAG_TRANSMIC_64) != … in mesh_upper_transport_process_access_message()
588 uint8_t * upper_transport_pdu = incoming_access_decrypted->data; in mesh_upper_transport_process_access_message()
589 uint8_t upper_transport_pdu_len = incoming_access_decrypted->len - transmic_len; in mesh_upper_transport_process_access_message()
592 uint8_t aid = incoming_access_decrypted->akf_aid_control & 0x3f; in mesh_upper_transport_process_access_message()
593 uint8_t akf = (incoming_access_decrypted->akf_aid_control & 0x40) >> 6; in mesh_upper_transport_process_access_message()
598 …sport_key_and_virtual_address_iterator_init(&mesh_transport_key_it, incoming_access_decrypted->dst, in mesh_upper_transport_process_access_message()
599 … incoming_access_decrypted->netkey_index, akf, aid); in mesh_upper_transport_process_access_message()
870 incoming_access_decrypted = &incoming_pdu_singleton.access; in mesh_upper_transport_run()
871 incoming_access_decrypted->pdu_header.pdu_type = MESH_PDU_TYPE_ACCESS; in mesh_upper_transport_run()
872 incoming_access_decrypted->flags = 0; in mesh_upper_transport_run()
873 incoming_access_decrypted->netkey_index = network_pdu->netkey_index; in mesh_upper_transport_run()
874 incoming_access_decrypted->akf_aid_control = network_pdu->data[9]; in mesh_upper_transport_run()
875 incoming_access_decrypted->len = network_pdu->len - 10; // 9 header + 1 AID in mesh_upper_transport_run()
876 incoming_access_decrypted->ivi_nid = network_pdu->data[0]; in mesh_upper_transport_run()
877 incoming_access_decrypted->ctl_ttl = network_pdu->data[1]; in mesh_upper_transport_run()
878 incoming_access_decrypted->seq = big_endian_read_24(network_pdu->data, 2); in mesh_upper_transport_run()
879 incoming_access_decrypted->src = big_endian_read_16(network_pdu->data, 5); in mesh_upper_transport_run()
880 incoming_access_decrypted->dst = big_endian_read_16(network_pdu->data, 7); in mesh_upper_transport_run()
918 incoming_access_decrypted = &incoming_pdu_singleton.access; in mesh_upper_transport_run()
919 incoming_access_decrypted->pdu_header.pdu_type = MESH_PDU_TYPE_ACCESS; in mesh_upper_transport_run()
920 incoming_access_decrypted->flags = segmented_pdu->flags; in mesh_upper_transport_run()
921 incoming_access_decrypted->len = segmented_pdu->len; in mesh_upper_transport_run()
922 incoming_access_decrypted->netkey_index = segmented_pdu->netkey_index; in mesh_upper_transport_run()
923 incoming_access_decrypted->akf_aid_control = segmented_pdu->akf_aid_control; in mesh_upper_transport_run()
924 incoming_access_decrypted->ivi_nid = segmented_pdu->ivi_nid; in mesh_upper_transport_run()
925 incoming_access_decrypted->ctl_ttl = segmented_pdu->ctl_ttl; in mesh_upper_transport_run()
926 incoming_access_decrypted->seq = segmented_pdu->seq; in mesh_upper_transport_run()
927 incoming_access_decrypted->src = segmented_pdu->src; in mesh_upper_transport_run()
928 incoming_access_decrypted->dst = segmented_pdu->dst; in mesh_upper_transport_run()