Searched refs:pmsg (Results 1 – 1 of 1) sorted by relevance
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/ |
D | crypto.c | 200 uint8_t msg[16] = {0}, pmsg[16] = {0}, cmic[16] = {0}, in bt_mesh_ccm_decrypt() local 211 pmsg[0] = 0x01; in bt_mesh_ccm_decrypt() 212 memcpy(pmsg + 1, nonce, 13); in bt_mesh_ccm_decrypt() 213 sys_put_be16(0x0000, pmsg + 14); in bt_mesh_ccm_decrypt() 215 err = bt_mesh_encrypt_be(key, pmsg, cmic); in bt_mesh_ccm_decrypt() 222 pmsg[0] = 0x19 | (aad_len ? 0x40 : 0x00); in bt_mesh_ccm_decrypt() 224 pmsg[0] = 0x09 | (aad_len ? 0x40 : 0x00); in bt_mesh_ccm_decrypt() 227 memcpy(pmsg + 1, nonce, 13); in bt_mesh_ccm_decrypt() 228 sys_put_be16(msg_len, pmsg + 14); in bt_mesh_ccm_decrypt() 230 err = bt_mesh_encrypt_be(key, pmsg, Xn); in bt_mesh_ccm_decrypt() [all …]
|