Searched refs:data_sha (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/img_mgmt/ |
D | img_mgmt.h | 189 struct zcbor_string data_sha; member 203 uint8_t data_sha[IMG_MGMT_DATA_SHA_LEN]; member
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/ |
D | img_mgmt.c | 724 .data_sha = { 0 }, in img_mgmt_upload() 753 ZCBOR_MAP_DECODE_KEY_DECODER("sha", zcbor_bstr_decode, &req.data_sha), in img_mgmt_upload() 856 g_img_mgmt_state.data_sha_len = req.data_sha.len; in img_mgmt_upload() 857 memcpy(g_img_mgmt_state.data_sha, req.data_sha.value, req.data_sha.len); in img_mgmt_upload() 858 memset(&g_img_mgmt_state.data_sha[req.data_sha.len], 0, in img_mgmt_upload() 859 IMG_MGMT_DATA_SHA_LEN - req.data_sha.len); in img_mgmt_upload() 868 fic.match = g_img_mgmt_state.data_sha; in img_mgmt_upload() 945 .match = g_img_mgmt_state.data_sha, in img_mgmt_upload()
|
D | zephyr_img_mgmt.c | 603 if (req->data_sha.len > IMG_MGMT_DATA_SHA_LEN) { in img_mgmt_upload_inspect() 613 if ((req->data_sha.len > 0) && (g_img_mgmt_state.area_id != -1)) { in img_mgmt_upload_inspect() 614 if ((g_img_mgmt_state.data_sha_len == req->data_sha.len) && in img_mgmt_upload_inspect() 615 !memcmp(g_img_mgmt_state.data_sha, req->data_sha.value, in img_mgmt_upload_inspect() 616 req->data_sha.len)) { in img_mgmt_upload_inspect()
|