Searched refs:sg (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto_tc.c | 56 int bt_mesh_aes_cmac_raw_key(const uint8_t key[16], struct bt_mesh_sg *sg, size_t sg_len, in bt_mesh_aes_cmac_raw_key() argument 66 for (; sg_len; sg_len--, sg++) { in bt_mesh_aes_cmac_raw_key() 67 if (tc_cmac_update(&state, sg->data, sg->len) == TC_CRYPTO_FAIL) { in bt_mesh_aes_cmac_raw_key() 79 int bt_mesh_aes_cmac_mesh_key(const struct bt_mesh_key *key, struct bt_mesh_sg *sg, in bt_mesh_aes_cmac_mesh_key() argument 82 return bt_mesh_aes_cmac_raw_key(key->key, sg, sg_len, mac); in bt_mesh_aes_cmac_mesh_key() 85 int bt_mesh_sha256_hmac_raw_key(const uint8_t key[32], struct bt_mesh_sg *sg, size_t sg_len, in bt_mesh_sha256_hmac_raw_key() argument 98 for (; sg_len; sg_len--, sg++) { in bt_mesh_sha256_hmac_raw_key() 99 if (tc_hmac_update(&h, sg->data, sg->len) == TC_CRYPTO_FAIL) { in bt_mesh_sha256_hmac_raw_key()
|
D | crypto.c | 29 struct bt_mesh_sg sg = {.data = m, .len = len}; in bt_mesh_aes_cmac_one_raw_key() local 31 return bt_mesh_aes_cmac_raw_key(key, &sg, 1, mac); in bt_mesh_aes_cmac_one_raw_key() 37 struct bt_mesh_sg sg = {.data = m, .len = len}; in bt_mesh_aes_cmac_one_mesh_key() local 39 return bt_mesh_aes_cmac_mesh_key(key, &sg, 1, mac); in bt_mesh_aes_cmac_one_mesh_key() 45 struct bt_mesh_sg sg = {.data = m, .len = len}; in bt_mesh_sha256_hmac_one_raw_key() local 47 return bt_mesh_sha256_hmac_raw_key(key, &sg, 1, mac); in bt_mesh_sha256_hmac_one_raw_key() 80 struct bt_mesh_sg sg[3]; in bt_mesh_k2() local 102 sg[0].data = NULL; in bt_mesh_k2() 103 sg[0].len = 0; in bt_mesh_k2() 104 sg[1].data = p; in bt_mesh_k2() [all …]
|
D | crypto_psa.c | 125 int bt_mesh_aes_cmac_mesh_key(const struct bt_mesh_key *key, struct bt_mesh_sg *sg, in bt_mesh_aes_cmac_mesh_key() argument 137 for (; sg_len; sg_len--, sg++) { in bt_mesh_aes_cmac_mesh_key() 138 status = psa_mac_update(&operation, sg->data, sg->len); in bt_mesh_aes_cmac_mesh_key() 159 int bt_mesh_aes_cmac_raw_key(const uint8_t key[16], struct bt_mesh_sg *sg, in bt_mesh_aes_cmac_raw_key() argument 170 err = bt_mesh_aes_cmac_mesh_key(&key_id, sg, sg_len, mac); in bt_mesh_aes_cmac_raw_key() 177 int bt_mesh_sha256_hmac_raw_key(const uint8_t key[32], struct bt_mesh_sg *sg, size_t sg_len, in bt_mesh_sha256_hmac_raw_key() argument 210 for (; sg_len; sg_len--, sg++) { in bt_mesh_sha256_hmac_raw_key() 211 status = psa_mac_update(&operation, sg->data, sg->len); in bt_mesh_sha256_hmac_raw_key()
|
D | dfu_metadata.c | 78 struct bt_mesh_sg sg = {.data = buf->data, .len = buf->len}; in bt_mesh_dfu_metadata_comp_hash_get() local 80 err = bt_mesh_aes_cmac_raw_key(key, &sg, 1, mac); in bt_mesh_dfu_metadata_comp_hash_get()
|
D | crypto.h | 34 int bt_mesh_aes_cmac_mesh_key(const struct bt_mesh_key *key, struct bt_mesh_sg *sg, size_t sg_len, 37 int bt_mesh_aes_cmac_raw_key(const uint8_t key[16], struct bt_mesh_sg *sg, size_t sg_len, 40 int bt_mesh_sha256_hmac_raw_key(const uint8_t key[32], struct bt_mesh_sg *sg, size_t sg_len,
|