Home
last modified time | relevance | path

Searched refs:mic_len (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/bluetooth/bt_crypto_ccm/src/
Dtest_vectors.h17 const size_t mic_len; /* MIC length, defined as MAC in the RFC */ member
223 .mic_len = 8,
235 .mic_len = 8,
247 .mic_len = 8,
259 .mic_len = 8,
271 .mic_len = 8,
283 .mic_len = 8,
295 .mic_len = 10,
307 .mic_len = 10,
319 .mic_len = 10,
[all …]
Dtest_bt_crypto_ccm.c29 p->expected_output_len = p->input_len + p->mic_len; in ZTEST()
40 &encrypted_data[p->aad_len], p->mic_len); in ZTEST()
58 &decrypted_data[p->aad_len], p->mic_len); in ZTEST()
/Zephyr-latest/subsys/bluetooth/mesh/
Dcrypto.c382 uint8_t mic_len = NET_MIC_LEN(buf->data); in bt_mesh_net_encrypt() local
387 bt_hex(key, sizeof(struct bt_mesh_key)), mic_len); in bt_mesh_net_encrypt()
402 &buf->data[7], mic_len); in bt_mesh_net_encrypt()
404 net_buf_simple_add(buf, mic_len); in bt_mesh_net_encrypt()
413 uint8_t mic_len = NET_MIC_LEN(buf->data); in bt_mesh_net_decrypt() local
418 mic_len); in bt_mesh_net_decrypt()
431 buf->len -= mic_len; in bt_mesh_net_decrypt()
434 &buf->data[7], mic_len); in bt_mesh_net_decrypt()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dmesh_test.c451 const size_t mic_len = in bt_mesh_test_send_async() local
473 if (net_buf_simple_tailroom(&buf) < mic_len) { in bt_mesh_test_send_async()
474 LOG_ERR("No room for MIC of len %u in %u byte buffer", mic_len, in bt_mesh_test_send_async()
480 buf.size = buf.len + mic_len; in bt_mesh_test_send_async()