Home
last modified time | relevance | path

Searched refs:sg (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dcrypto.c25 int bt_mesh_aes_cmac(const uint8_t key[16], struct bt_mesh_sg *sg, in bt_mesh_aes_cmac() argument
35 for (; sg_len; sg_len--, sg++) { in bt_mesh_aes_cmac()
36 if (tc_cmac_update(&state, sg->data, in bt_mesh_aes_cmac()
37 sg->len) == TC_CRYPTO_FAIL) { in bt_mesh_aes_cmac()
65 struct bt_mesh_sg sg[3] = {0}; in bt_mesh_k2() local
87 sg[0].data = NULL; in bt_mesh_k2()
88 sg[0].len = 0; in bt_mesh_k2()
89 sg[1].data = p; in bt_mesh_k2()
90 sg[1].len = p_len; in bt_mesh_k2()
91 sg[2].data = &pad; in bt_mesh_k2()
[all …]
Dcrypto.h25 int bt_mesh_aes_cmac(const uint8_t key[16], struct bt_mesh_sg *sg,
31 struct bt_mesh_sg sg = { m, len }; in bt_mesh_aes_cmac_one() local
33 return bt_mesh_aes_cmac(key, &sg, 1, mac); in bt_mesh_aes_cmac_one()
123 struct bt_mesh_sg sg[] = { in bt_mesh_prov_salt() local
129 return bt_mesh_aes_cmac(prov_salt_key, sg, ARRAY_SIZE(sg), prov_salt); in bt_mesh_prov_salt()