Lines Matching full:pdu
25 #define NET_MIC_LEN(pdu) (((pdu)[1] & 0x80) ? 8 : 4) argument
517 static void create_proxy_nonce(u8_t nonce[13], const u8_t *pdu, in create_proxy_nonce() argument
527 nonce[2] = pdu[2]; in create_proxy_nonce()
528 nonce[3] = pdu[3]; in create_proxy_nonce()
529 nonce[4] = pdu[4]; in create_proxy_nonce()
532 nonce[5] = pdu[5]; in create_proxy_nonce()
533 nonce[6] = pdu[6]; in create_proxy_nonce()
544 static void create_net_nonce(u8_t nonce[13], const u8_t *pdu, in create_net_nonce() argument
551 nonce[1] = pdu[1]; in create_net_nonce()
554 nonce[2] = pdu[2]; in create_net_nonce()
555 nonce[3] = pdu[3]; in create_net_nonce()
556 nonce[4] = pdu[4]; in create_net_nonce()
559 nonce[5] = pdu[5]; in create_net_nonce()
560 nonce[6] = pdu[6]; in create_net_nonce()
570 int bt_mesh_net_obfuscate(u8_t *pdu, u32_t iv_index, in bt_mesh_net_obfuscate() argument
580 memcpy(&priv_rand[9], &pdu[7], 7); in bt_mesh_net_obfuscate()
590 pdu[1 + i] ^= tmp[i]; in bt_mesh_net_obfuscate()
605 BT_DBG("PDU (len %u) %s", buf->om_len, bt_hex(buf->om_data, buf->om_len)); in bt_mesh_net_encrypt()
634 BT_DBG("PDU (%u bytes) %s", buf->om_len, bt_hex(buf->om_data, buf->om_len)); in bt_mesh_net_decrypt()