Searched refs:upload_state (Results 1 – 1 of 1) sorted by relevance
251 static size_t upload_message_header_size(struct img_gr_upload *upload_state) in upload_message_header_size() argument264 if (upload_state->hash_initialized) { in upload_message_header_size()272 zcbor_uint32_put(zse, upload_state->image_num) && zcbor_tstr_put_lit(zse, "data") && in upload_message_header_size()274 zcbor_size_put(zse, upload_state->image_size) && zcbor_tstr_put_lit(zse, "off") && in upload_message_header_size()275 zcbor_size_put(zse, upload_state->offset); in upload_message_header_size()278 if (ok && upload_state->hash_initialized) { in upload_message_header_size()280 zcbor_bstr_encode_ptr(zse, upload_state->sha256, IMG_MGMT_DATA_SHA_LEN); in upload_message_header_size()