/mcuboot-latest/boot/zcbor/src/ |
D | zcbor_decode.c | 40 static bool initial_checks(zcbor_state_t *state) in initial_checks() 48 static bool type_check(zcbor_state_t *state, zcbor_major_type_t exp_major_type) in type_check() 76 static void err_restore(zcbor_state_t *state, int err) in err_restore() 129 static bool value_extract(zcbor_state_t *state, in value_extract() 169 bool zcbor_int_decode(zcbor_state_t *state, void *result, size_t result_size) 207 bool zcbor_int32_decode(zcbor_state_t *state, int32_t *result) 214 bool zcbor_int64_decode(zcbor_state_t *state, int64_t *result) 221 bool zcbor_uint_decode(zcbor_state_t *state, void *result, size_t result_size) 234 bool zcbor_uint32_decode(zcbor_state_t *state, uint32_t *result) 241 bool zcbor_int32_expect_union(zcbor_state_t *state, int32_t result) [all …]
|
D | zcbor_encode.c | 48 static bool encode_header_byte(zcbor_state_t *state, in encode_header_byte() 63 static bool value_encode_len(zcbor_state_t *state, zcbor_major_type_t major_type, in value_encode_len() 94 static bool value_encode(zcbor_state_t *state, zcbor_major_type_t major_type, in value_encode() 110 bool zcbor_int_encode(zcbor_state_t *state, const void *input_int, size_t int_size) 146 bool zcbor_uint_encode(zcbor_state_t *state, const void *input_uint, size_t uint_size) 156 bool zcbor_int32_encode(zcbor_state_t *state, const int32_t *input) 162 bool zcbor_int64_encode(zcbor_state_t *state, const int64_t *input) 168 bool zcbor_uint32_encode(zcbor_state_t *state, const uint32_t *input) 174 bool zcbor_uint64_encode(zcbor_state_t *state, const uint64_t *input) 180 bool zcbor_int32_put(zcbor_state_t *state, int32_t input) [all …]
|
D | zcbor_common.c | 25 bool zcbor_new_backup(zcbor_state_t *state, size_t new_elem_count) in zcbor_new_backup() 53 bool zcbor_process_backup(zcbor_state_t *state, uint32_t flags, in zcbor_process_backup() 103 static void update_backups(zcbor_state_t *state, uint8_t const *new_payload_end) in update_backups() 114 bool zcbor_union_start_code(zcbor_state_t *state) in zcbor_union_start_code() 123 bool zcbor_union_elem_code(zcbor_state_t *state) in zcbor_union_elem_code() 131 bool zcbor_union_end_code(zcbor_state_t *state) in zcbor_union_end_code() 180 void zcbor_update_state(zcbor_state_t *state, in zcbor_update_state() 291 void *result, size_t *payload_len_out, zcbor_state_t *state, zcbor_decoder_t func, in zcbor_entry_function()
|
/mcuboot-latest/boot/zcbor/include/ |
D | zcbor_decode.h | 226 #define zcbor_search_key_bstr_lit(state, str) zcbor_search_key_bstr_ptr(state, str, sizeof(str) - 1) argument 227 #define zcbor_search_key_tstr_lit(state, str) zcbor_search_key_tstr_ptr(state, str, sizeof(str) - 1) argument 228 #define zcbor_search_key_bstr_arr(state, str) zcbor_search_key_bstr_ptr(state, str, (sizeof(str))) argument 229 #define zcbor_search_key_tstr_arr(state, str) zcbor_search_key_tstr_ptr(state, str, (sizeof(str))) argument 374 #define zcbor_bstr_expect_lit(state, str) zcbor_bstr_expect_ptr(state, str, sizeof(str) - 1) argument 375 #define zcbor_tstr_expect_lit(state, str) zcbor_tstr_expect_ptr(state, str, sizeof(str) - 1) argument 376 #define zcbor_bstr_expect_arr(state, str) zcbor_bstr_expect_ptr(state, str, sizeof(str)) argument 377 #define zcbor_tstr_expect_arr(state, str) zcbor_tstr_expect_ptr(state, str, sizeof(str)) argument
|
D | zcbor_encode.h | 216 #define zcbor_bstr_put_lit(state, str) zcbor_bstr_encode_ptr(state, str, sizeof(str) - 1) argument 217 #define zcbor_tstr_put_lit(state, str) zcbor_tstr_encode_ptr(state, str, sizeof(str) - 1) argument 218 #define zcbor_bstr_put_arr(state, str) zcbor_bstr_encode_ptr(state, str, sizeof(str)) argument 219 #define zcbor_tstr_put_arr(state, str) zcbor_tstr_encode_ptr(state, str, sizeof(str)) argument
|
D | zcbor_print.h | 28 #define zcbor_trace_raw(state) (zcbor_do_print("rem: %zu, cur: 0x%x, ec: 0x%zx, err: %d",\ argument 31 #define zcbor_trace(state, appendix) do { \ argument 35 #define zcbor_trace_file(state) do { \ argument
|
D | zcbor_common.h | 337 static inline bool zcbor_check_error(const zcbor_state_t *state) in zcbor_check_error() 345 static inline int zcbor_pop_error(zcbor_state_t *state) in zcbor_pop_error() 357 static inline int zcbor_peek_error(const zcbor_state_t *state) in zcbor_peek_error() 367 static inline void zcbor_error(zcbor_state_t *state, int err) in zcbor_error() 380 static inline bool zcbor_payload_at_end(const zcbor_state_t *state) in zcbor_payload_at_end()
|
/mcuboot-latest/boot/bootutil/src/ |
D | swap_priv.h | 94 #define BOOT_SCRATCH_AREA(state) ((state)->scratch.area) argument 96 static inline size_t boot_scratch_area_size(const struct boot_loader_state *state) in boot_scratch_area_size()
|
D | loader.c | 116 boot_read_image_headers(struct boot_loader_state *state, bool require_all, in boot_read_image_headers() 156 boot_add_shared_data(struct boot_loader_state *state, in boot_add_shared_data() 199 fill_rsp(struct boot_loader_state *state, struct boot_rsp *rsp) in fill_rsp() 234 close_all_flash_areas(struct boot_loader_state *state) in close_all_flash_areas() 312 boot_initialize_area(struct boot_loader_state *state, int flash_area) in boot_initialize_area() 352 boot_read_sectors_recovery(struct boot_loader_state *state) in boot_read_sectors_recovery() 389 boot_verify_slot_dependency(struct boot_loader_state *state, in boot_verify_slot_dependency() 448 boot_verify_dependencies(struct boot_loader_state *state) in boot_verify_dependencies() 500 boot_verify_dependencies(struct boot_loader_state *state) in boot_verify_dependencies() 538 boot_verify_slot_dependencies(struct boot_loader_state *state, uint32_t slot) in boot_verify_slot_dependencies() [all …]
|
D | swap_move.c | 51 find_last_idx(struct boot_loader_state *state, uint32_t swap_size) in find_last_idx() 72 boot_read_image_header(struct boot_loader_state *state, int slot, in boot_read_image_header() 146 struct boot_loader_state *state, struct boot_status *bs) in swap_read_status_bytes() 237 static int app_max_sectors(struct boot_loader_state *state) in app_max_sectors() 260 boot_slots_compatible(struct boot_loader_state *state) in boot_slots_compatible() 331 #define BOOT_LOG_SWAP_STATE(area, state) \ argument 343 swap_status_source(struct boot_loader_state *state) in swap_status_source() 387 boot_move_sector_up(int idx, uint32_t sz, struct boot_loader_state *state, in boot_move_sector_up() 430 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors() 480 fixup_revert(const struct boot_loader_state *state, struct boot_status *bs, in fixup_revert() [all …]
|
D | swap_scratch.c | 58 struct boot_loader_state *state, struct boot_status *bs) in swap_read_status_bytes() 142 boot_slots_compatible(struct boot_loader_state *state) in boot_slots_compatible() 243 #define BOOT_LOG_SWAP_STATE(area, state) \ argument 342 swap_status_source(struct boot_loader_state *state) in swap_status_source() 425 boot_copy_sz(const struct boot_loader_state *state, int last_sector_idx, in boot_copy_sz() 465 find_last_sector_idx(const struct boot_loader_state *state, uint32_t copy_size) in find_last_sector_idx() 514 find_swap_count(const struct boot_loader_state *state, uint32_t copy_size) in find_swap_count() 546 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors() 748 swap_run(struct boot_loader_state *state, struct boot_status *bs, in swap_run() 774 int app_max_size(struct boot_loader_state *state) in app_max_size() [all …]
|
D | swap_misc.c | 35 swap_erase_trailer_sectors(const struct boot_loader_state *state, in swap_erase_trailer_sectors() 83 swap_status_init(const struct boot_loader_state *state, in swap_status_init() 131 swap_read_status(struct boot_loader_state *state, struct boot_status *bs) in swap_read_status() 209 struct boot_swap_state state; in swap_set_image_ok() local
|
D | bootutil_priv.h | 88 uint8_t state; /* Which part of the swapping process are we at */ member 364 #define BOOT_CURR_IMG(state) ((state)->curr_img_idx) argument 366 #define BOOT_CURR_IMG(state) 0 argument 369 #define BOOT_CURR_ENC(state) ((state)->enc[BOOT_CURR_IMG(state)]) argument 371 #define BOOT_CURR_ENC(state) NULL argument 373 #define BOOT_IMG(state, slot) ((state)->imgs[BOOT_CURR_IMG(state)][(slot)]) argument 374 #define BOOT_IMG_AREA(state, slot) (BOOT_IMG(state, slot).area) argument 375 #define BOOT_WRITE_SZ(state) ((state)->write_sz) argument 376 #define BOOT_SWAP_TYPE(state) ((state)->swap_type[BOOT_CURR_IMG(state)]) argument 385 boot_img_hdr(struct boot_loader_state *state, size_t slot) in boot_img_hdr() [all …]
|
D | bootutil_public.c | 221 struct boot_swap_state *state) in boot_read_swap_state() 264 boot_read_swap_state_by_id(int flash_area_id, struct boot_swap_state *state) in boot_read_swap_state_by_id()
|
/mcuboot-latest/boot/zephyr/ |
D | flash_check.c | 19 bool swap_write_block_size_check(struct boot_loader_state *state) in swap_write_block_size_check()
|
D | single_loader.c | 66 static struct boot_swap_state state; in boot_image_validate_once() local
|
D | firmware_loader.c | 70 static struct boot_swap_state state; in boot_image_validate_once() local
|
D | hooks_sample.c | 65 struct boot_swap_state *state) in boot_read_swap_state_primary_slot_hook()
|
/mcuboot-latest/boot/boot_serial/src/ |
D | boot_serial_encryption.c | 30 struct boot_loader_state *state = &boot_data; in boot_image_validate_encrypted() local 116 decrypt_region_inplace(struct boot_loader_state *state, in decrypt_region_inplace() 214 struct boot_loader_state *state = &boot_data; in decrypt_image_inplace() local
|
/mcuboot-latest/boot/mynewt/src/ |
D | single_loader.c | 66 static struct boot_swap_state state; in boot_image_validate_once() local
|
/mcuboot-latest/ext/tinycrypt/lib/source/ |
D | aes_decrypt.c | 131 uint8_t state[Nk*Nb]; in tc_aes_decrypt() local
|
D | aes_encrypt.c | 160 uint8_t state[Nk*Nb]; in tc_aes_encrypt() local
|
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_cmac_mode.c | 260 struct tc_cmac_struct state; in main() local
|
/mcuboot-latest/ptest/src/ |
D | main.rs | 64 let state = State::new(matrix.envs.len()); in main() localVariable 73 let state = state.clone(); in main() localVariable
|
/mcuboot-latest/sim/mcuboot-sys/csupport/ |
D | run.c | 251 struct boot_loader_state *state; in invoke_boot_go() local
|