Searched refs:aszmic (Results 1 – 4 of 4) sorted by relevance
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | crypto.c | 37 #define APP_MIC_LEN(aszmic) ((aszmic) ? 8 : 4) argument 662 static void create_app_nonce(u8_t nonce[13], bool dev_key, u8_t aszmic, in create_app_nonce() argument 672 sys_put_be32((seq_num | ((bt_u32_t)aszmic << 31)), &nonce[1]); in create_app_nonce() 680 int bt_mesh_app_encrypt(const u8_t key[16], bool dev_key, u8_t aszmic, in bt_mesh_app_encrypt() argument 692 create_app_nonce(nonce, dev_key, aszmic, src, dst, seq_num, iv_index); in bt_mesh_app_encrypt() 697 ad ? 16 : 0, buf->data, APP_MIC_LEN(aszmic)); in bt_mesh_app_encrypt() 699 net_buf_simple_add(buf, APP_MIC_LEN(aszmic)); in bt_mesh_app_encrypt() 706 int bt_mesh_app_decrypt(const u8_t key[16], bool dev_key, u8_t aszmic, in bt_mesh_app_decrypt() argument 716 create_app_nonce(nonce, dev_key, aszmic, src, dst, seq_num, iv_index); in bt_mesh_app_decrypt() 722 ad ? 16 : 0, out->data, APP_MIC_LEN(aszmic)); in bt_mesh_app_decrypt()
|
A D | transport.c | 61 #define APP_MIC_LEN(aszmic) ((aszmic) ? 8 : 4) argument 326 net_tx->ctx->app_idx, net_tx->aszmic, sdu->len); in send_seg() 393 net_buf_add_u8(seg, (net_tx->aszmic << 7) | seq_zero >> 6); in send_seg() 512 tx->aszmic = 0; in bt_mesh_trans_send() 514 tx->aszmic = 1; in bt_mesh_trans_send() 632 static int sdu_recv(struct bt_mesh_net_rx *rx, bt_u32_t seq, u8_t hdr, u8_t aszmic, struct net_buf_… in sdu_recv() argument 639 BT_DBG("ASZMIC %u AKF %u AID 0x%02x", aszmic, AKF(&hdr), AID(&hdr)); in sdu_recv() 642 if (buf->len < 1 + APP_MIC_LEN(aszmic)) { in sdu_recv() 659 buf->len -= APP_MIC_LEN(aszmic); in sdu_recv() 675 …err = bt_mesh_app_decrypt(dev_key, true, aszmic, buf, &sdu, ad, rx->ctx.addr, rx->ctx.recv_dst, se… in sdu_recv() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | crypto.h | 130 int bt_mesh_app_encrypt(const u8_t key[16], bool dev_key, u8_t aszmic, 134 int bt_mesh_app_decrypt(const u8_t key[16], bool dev_key, u8_t aszmic,
|
A D | net.h | 315 u8_t friend_cred:1, aszmic:1, aid:6; member
|
Completed in 9 milliseconds