/mcuboot-2.7.6/ext/mbedtls-asn1/include/mbedtls/ |
D | check_config.h | 38 #if CHAR_BIT != 8 42 #if defined(_WIN32) 43 #if !defined(MBEDTLS_PLATFORM_C) 49 #if !defined(MBEDTLS_PLATFORM_SNPRINTF_ALT) && \ 55 #if defined(TARGET_LIKE_MBED) && \ 60 #if defined(MBEDTLS_DEPRECATED_WARNING) && \ 65 #if defined(MBEDTLS_HAVE_TIME_DATE) && !defined(MBEDTLS_HAVE_TIME) 69 #if defined(MBEDTLS_AESNI_C) && !defined(MBEDTLS_HAVE_ASM) 73 #if defined(MBEDTLS_CTR_DRBG_C) && !defined(MBEDTLS_AES_C) 77 #if defined(MBEDTLS_DHM_C) && !defined(MBEDTLS_BIGNUM_C) [all …]
|
D | bignum.h | 27 #if !defined(MBEDTLS_CONFIG_FILE) 36 #if defined(MBEDTLS_FS_IO) 49 #define MBEDTLS_MPI_CHK(f) do { if( ( ret = f ) != 0 ) goto cleanup; } while( 0 ) 56 #if !defined(MBEDTLS_MPI_WINDOW_SIZE) 69 #if !defined(MBEDTLS_MPI_MAX_SIZE) 114 #if !defined(MBEDTLS_HAVE_INT32) 115 #if defined(_MSC_VER) && defined(_M_AMD64) 117 #if !defined(MBEDTLS_HAVE_INT64) 128 #if !defined(MBEDTLS_HAVE_INT64) 133 #if !defined(MBEDTLS_NO_UDBL_DIVISION) [all …]
|
D | platform.h | 36 #if !defined(MBEDTLS_CONFIG_FILE) 42 #if defined(MBEDTLS_HAVE_TIME) 61 #if !defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS) 65 #if !defined(MBEDTLS_PLATFORM_STD_SNPRINTF) 66 #if defined(_WIN32) 72 #if !defined(MBEDTLS_PLATFORM_STD_PRINTF) 75 #if !defined(MBEDTLS_PLATFORM_STD_FPRINTF) 78 #if !defined(MBEDTLS_PLATFORM_STD_CALLOC) 81 #if !defined(MBEDTLS_PLATFORM_STD_FREE) 84 #if !defined(MBEDTLS_PLATFORM_STD_EXIT) [all …]
|
D | pk.h | 28 #if !defined(MBEDTLS_CONFIG_FILE) 36 #if defined(MBEDTLS_RSA_C) 40 #if defined(MBEDTLS_ECP_C) 44 #if defined(MBEDTLS_ECDSA_C) 48 #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ 136 #if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_ECP_RESTARTABLE) 150 #if defined(MBEDTLS_RSA_C) 163 #if defined(MBEDTLS_ECP_C) 176 #if defined(MBEDTLS_PK_RSA_ALT_SUPPORT) 195 * \return The PK info associated with the type or NULL if not found. [all …]
|
/mcuboot-2.7.6/boot/zephyr/ |
D | Kconfig | 15 select MPU_ALLOW_FLASH_WRITE if ARM_MPU 16 select USE_DT_CODE_PARTITION if HAS_FLASH_LOAD_OFFSET 81 if BOOT_SIGNATURE_TYPE_RSA 91 if BOOT_SIGNATURE_TYPE_ECDSA_P256 113 if BOOT_SIGNATURE_TYPE_ED25519 131 default "root-ec-p256.pem" if BOOT_SIGNATURE_TYPE_ECDSA_P256 132 default "root-ed25519.pem" if BOOT_SIGNATURE_TYPE_ED25519 133 default "root-rsa-3072.pem" if BOOT_SIGNATURE_TYPE_RSA && BOOT_SIGNATURE_TYPE_RSA_LEN=3072 134 default "root-rsa-2048.pem" if BOOT_SIGNATURE_TYPE_RSA && BOOT_SIGNATURE_TYPE_RSA_LEN=2048 140 located. If the key file is not there, the build system uses relative [all …]
|
D | main.c | 47 #if defined(CONFIG_BOOT_USB_DFU_WAIT) || defined(CONFIG_BOOT_USB_DFU_GPIO) 51 #if CONFIG_MCUBOOT_CLEANUP_ARM_CORE 58 #if (defined(CONFIG_LOG_MODE_MINIMAL) || defined(CONFIG_LOG_MINIMAL)) 62 #if defined(CONFIG_LOG) && !defined(CONFIG_LOG_IMMEDIATE) && \ 93 #if NRF_POWER_HAS_RESETREAS in boot_skip_serial_recovery() 113 * property, or returns 0 if the property has no 'flags' cell. 121 * The led0 devicetree alias is optional. If present, we'll use it 127 #if DT_NODE_HAS_STATUS(LED0_NODE, okay) && DT_NODE_HAS_PROP(LED0_NODE, gpios) 142 if (led == NULL) { in led_init() 155 #if defined(CONFIG_ARM) [all …]
|
D | serial_adapter.c | 25 #if defined(CONFIG_BOOT_SERIAL_UART) && defined(CONFIG_UART_CONSOLE) 26 #error Zephyr UART console must been disabled if serial_adapter module is used. 69 if (console_out((int)str[i]) == EOF) { in console_write() 83 if (line == NULL) { in console_read() 88 if (len > str_size - 1) { in console_read() 126 if (!uart_irq_rx_ready(uart_dev)) { in boot_uart_fifo_callback() 132 if (rx != 1) { in boot_uart_fifo_callback() 136 if (!cmd) { in boot_uart_fifo_callback() 140 if (!node) { in boot_uart_fifo_callback() 148 if (cur < CONFIG_BOOT_MAX_LINE_INPUT_LEN) { in boot_uart_fifo_callback() [all …]
|
/mcuboot-2.7.6/boot/bootutil/src/ |
D | encrypted.c | 10 #if defined(MCUBOOT_ENC_IMAGES) 15 #if defined(MCUBOOT_ENCRYPT_RSA) 21 #if defined(MCUBOOT_ENCRYPT_KW) 25 #if defined(MCUBOOT_ENCRYPT_EC256) 29 #if defined(MCUBOOT_ENCRYPT_X25519) 33 #if defined(MCUBOOT_ENCRYPT_EC256) || defined(MCUBOOT_ENCRYPT_X25519) 46 #if defined(MCUBOOT_ENCRYPT_EC256) || defined(MCUBOOT_ENCRYPT_X25519) 47 #if defined(_compare) 68 #if defined(MCUBOOT_ENCRYPT_KW) 77 if (rc != 0) { in key_unwrap() [all …]
|
D | loader.c | 59 #if (BOOT_IMAGE_NUMBER > 1) 65 #if defined(MCUBOOT_DIRECT_XIP) || defined(MCUBOOT_RAM_LOAD) 70 #if defined(MCUBOOT_RAM_LOAD) 88 #if !defined(__BOOTSIM__) 103 if (rc != 0) { in boot_read_image_headers() 104 /* If `require_all` is set, fail on any single fail, otherwise in boot_read_image_headers() 105 * if at least the first slot's header was read successfully, in boot_read_image_headers() 110 if (i > 0 && !require_all) { in boot_read_image_headers() 133 #if defined(MCUBOOT_MEASURED_BOOT) || defined(MCUBOOT_DATA_SHARING) in boot_add_shared_data() 140 if (rc != 0) { in boot_add_shared_data() [all …]
|
D | image_validate.c | 46 #if defined(MCUBOOT_SIGN_RSA) 49 #if defined(MCUBOOT_SIGN_EC) || defined(MCUBOOT_SIGN_EC256) 52 #if defined(MCUBOOT_ENC_IMAGES) || defined(MCUBOOT_SIGN_RSA) || \ 77 #if (BOOT_IMAGE_NUMBER == 1) || !defined(MCUBOOT_ENC_IMAGES) || \ in bootutil_img_hash() 93 if (MUST_DECRYPT(fap, image_index, hdr) && in bootutil_img_hash() 103 if (seed && (seed_len > 0)) { in bootutil_img_hash() 112 /* If protected TLVs are present they are also hashed. */ in bootutil_img_hash() 120 if (blk_sz > tmp_buf_sz) { in bootutil_img_hash() 127 if ((off < hdr_size) && ((off + blk_sz) > hdr_size)) { in bootutil_img_hash() 131 if ((off < tlv_off) && ((off + blk_sz) > tlv_off)) { in bootutil_img_hash() [all …]
|
D | swap_move.c | 35 #if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT) 42 if (!(x)) { \ 62 #if (BOOT_IMAGE_NUMBER == 1) in boot_read_image_header() 67 if (bs) { in boot_read_image_header() 69 if (bs->op == BOOT_STATUS_OP_MOVE) { in boot_read_image_header() 70 if (slot == 0 && bs->idx > g_last_idx) { in boot_read_image_header() 74 } else if (bs->op == BOOT_STATUS_OP_SWAP) { in boot_read_image_header() 75 if (bs->idx > 1 && bs->idx <= g_last_idx) { in boot_read_image_header() 76 if (slot == 0) { in boot_read_image_header() 81 } else if (bs->idx == 1) { in boot_read_image_header() [all …]
|
D | caps.c | 27 #if defined(MCUBOOT_SIGN_RSA) in bootutil_get_caps() 28 #if MCUBOOT_SIGN_RSA_LEN == 2048 in bootutil_get_caps() 31 #if MCUBOOT_SIGN_RSA_LEN == 3072 in bootutil_get_caps() 35 #if defined(MCUBOOT_SIGN_EC) in bootutil_get_caps() 38 #if defined(MCUBOOT_SIGN_EC256) in bootutil_get_caps() 41 #if defined(MCUBOOT_SIGN_ED25519) in bootutil_get_caps() 44 #if defined(MCUBOOT_OVERWRITE_ONLY) in bootutil_get_caps() 51 #if defined(MCUBOOT_ENCRYPT_RSA) in bootutil_get_caps() 54 #if defined(MCUBOOT_ENCRYPT_KW) in bootutil_get_caps() 57 #if defined(MCUBOOT_ENCRYPT_EC256) in bootutil_get_caps() [all …]
|
D | image_ec256.c | 33 #if defined(MCUBOOT_USE_CC310) || defined(MCUBOOT_USE_MBED_TLS) 36 #if defined(MCUBOOT_USE_TINYCRYPT) || defined(MCUBOOT_USE_CC310) || \ 62 if (mbedtls_asn1_get_tag(p, end, &len, in bootutil_parse_eckey() 68 if (mbedtls_asn1_get_alg(p, end, &alg, ¶m)) { in bootutil_parse_eckey() 71 if (alg.len != sizeof(ec_pubkey_oid) - 1 || in bootutil_parse_eckey() 75 if (param.len != sizeof(ec_secp256r1_oid) - 1|| in bootutil_parse_eckey() 80 if (mbedtls_ecp_group_load(&ctx->grp, MBEDTLS_ECP_DP_SECP256R1)) { in bootutil_parse_eckey() 84 if (mbedtls_asn1_get_bitstring_null(p, end, &len)) { in bootutil_parse_eckey() 87 if (*p + len != end) { in bootutil_parse_eckey() 91 if (mbedtls_ecp_point_read_binary(&ctx->grp, &ctx->Q, *p, end - *p)) { in bootutil_parse_eckey() [all …]
|
D | swap_scratch.c | 33 #if !defined(MCUBOOT_SWAP_USING_MOVE) 35 #if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT) 42 if (!(x)) { \ 60 #if (BOOT_IMAGE_NUMBER == 1) in boot_read_image_header() 66 if (rc != 0) { in boot_read_image_header() 72 if (rc != 0) { in boot_read_image_header() 84 #if !defined(MCUBOOT_DIRECT_XIP) && !defined(MCUBOOT_RAM_LOAD) 86 * Reads the status of a partially-completed swap, if any. This is necessary 105 if (max_entries < 0) { in swap_read_status_bytes() 115 if (rc < 0) { in swap_read_status_bytes() [all …]
|
D | tlv.c | 33 * @param prot true if TLV has to be stored in the protected area, false otherwise 35 * @returns 0 if the TLV iterator was successfully started 45 if (it == NULL || hdr == NULL || fap == NULL) { in bootutil_tlv_iter_begin() 50 if (LOAD_IMAGE_DATA(hdr, fap, off_, &info, sizeof(info))) { in bootutil_tlv_iter_begin() 54 if (info.it_magic == IMAGE_TLV_PROT_INFO_MAGIC) { in bootutil_tlv_iter_begin() 55 if (hdr->ih_protect_tlv_size != info.it_tlv_tot) { in bootutil_tlv_iter_begin() 59 if (LOAD_IMAGE_DATA(hdr, fap, off_ + info.it_tlv_tot, in bootutil_tlv_iter_begin() 63 } else if (hdr->ih_protect_tlv_size != 0) { in bootutil_tlv_iter_begin() 67 if (info.it_magic != IMAGE_TLV_INFO_MAGIC) { in bootutil_tlv_iter_begin() 88 * @param type If not NULL returns the type of TLV found [all …]
|
/mcuboot-2.7.6/boot/boot_serial/src/ |
D | cbor_decode.c | 24 if (24 <= additional && additional <= 27) { in additional_len() 44 if (expr) { \ 52 if (expr) { \ 75 * @p ppayload and @p elem_count are updated if the function 76 * succeeds. If not, they are left unchanged. 79 * big to little-endian if necessary (@ref CONFIG_BIG_ENDIAN). 98 if (additional <= VALUE_IN_HEADER) { in value_extract() 134 if (!value_extract(state, &uint_result, 4)) { in int32_decode() 139 if (uint_result >= (1 << (8*sizeof(uint_result)-1))) { in int32_decode() 144 if (major_type == CBOR_MAJOR_TYPE_NINT) { in int32_decode() [all …]
|
D | cbor_encode.c | 43 if ((state->payload + 1) > state->payload_end) { in encode_header_byte() 60 if ((state->payload + 1 + result_len) > state->payload_end) { in value_encode_len() 64 if (!encode_header_byte(state, major_type, in value_encode_len() 97 if (u8_result[idx] != 0) { in get_result_len() 110 if (max_result_len <= encode_byte_cnt) { in get_result_len() 118 if ((max_result_len == 1) && (u8_result[0] <= VALUE_IN_HEADER)) { in get_result_len() 139 if (input < 0) { in intx32_put() 148 if (!value_encode(state, major_type, &input, 4)) { in intx32_put() 164 if (!value_encode(state, major_type, input, 4)) { in uint32_encode() 173 if (!uint32_encode(state, input, CBOR_MAJOR_TYPE_PINT)) { in uintx32_encode() [all …]
|
D | boot_serial.c | 83 #if (BOOT_IMAGE_NUMBER > 1) 125 if (n || dgt > 0 || d == 0) { in u32toa() 171 if (flash_area_open(area_id, &fap)) { in bs_list() 177 if (hdr.ih_magic != IMAGE_MAGIC || in bs_list() 187 #if (BOOT_IMAGE_NUMBER > 1) in bs_list() 242 if (!result || (len != decoded_len)) { in bs_upload() 270 if (off == UINT64_MAX || img_data == NULL) { in bs_upload() 278 if (rc) { in bs_upload() 283 if (off == 0) { in bs_upload() 285 if (data_len > fap->fa_size) { in bs_upload() [all …]
|
/mcuboot-2.7.6/boot/mynewt/mcuboot_config/include/mcuboot_config/ |
D | mcuboot_config.h | 24 #if MYNEWT_VAL(BOOTUTIL_IMAGE_NUMBER) 29 #if MYNEWT_VAL(BOOT_SERIAL) 32 #if MYNEWT_VAL(BOOTUTIL_VALIDATE_SLOT0) 35 #if MYNEWT_VAL(BOOTUTIL_USE_MBED_TLS) 38 #if MYNEWT_VAL(BOOTUTIL_USE_TINYCRYPT) 41 #if MYNEWT_VAL(BOOTUTIL_SIGN_EC256) 47 #if MYNEWT_VAL(BOOTUTIL_SIGN_RSA) 51 #if MYNEWT_VAL(BOOTUTIL_SIGN_ED25519) 54 #if MYNEWT_VAL(BOOTUTIL_SIGN_EC) 57 #if MYNEWT_VAL(BOOTUTIL_ENCRYPT_RSA) [all …]
|
/mcuboot-2.7.6/ext/mbedtls-asn1/src/ |
D | asn1parse.c | 22 #if !defined(MBEDTLS_CONFIG_FILE) 28 #if defined(MBEDTLS_ASN1_PARSE_C) 35 #if defined(MBEDTLS_BIGNUM_C) 39 #if defined(MBEDTLS_PLATFORM_C) 54 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_len() 57 if( ( **p & 0x80 ) == 0 ) in mbedtls_asn1_get_len() 64 if( ( end - *p ) < 2 ) in mbedtls_asn1_get_len() 72 if( ( end - *p ) < 3 ) in mbedtls_asn1_get_len() 80 if( ( end - *p ) < 4 ) in mbedtls_asn1_get_len() 89 if( ( end - *p ) < 5 ) in mbedtls_asn1_get_len() [all …]
|
/mcuboot-2.7.6/scripts/imgtool/ |
D | image.py | 116 if isinstance(kind, int): 124 if len(self.buf) == 0: 140 if load_addr and rom_fixed: 154 self.load_addr = 0 if load_addr is None else load_addr 156 self.erased_val = 0xff if erased_val is None else int(erased_val, 0) 162 if security_counter == 'auto': 179 self.base_addr if self.base_addr is not None else "N/A", 193 if ext == INTEL_HEX_EXT: 203 # Add the image header if needed. 204 if self.pad_header and self.header_size > 0: [all …]
|
/mcuboot-2.7.6/boot/mynewt/src/ |
D | main.c | 41 #if defined(MCUBOOT_SERIAL) 50 #if MYNEWT_VAL(BOOT_CUSTOM_START) 54 #if defined(MCUBOOT_SERIAL) 68 #if MYNEWT_VAL(BOOT_SERIAL_REPORT_PIN) != -1 in boot_read() 71 if (tick == 0) { in boot_read() 79 if (os_cputime_get32() - tick > BOOT_SERIAL_REPORT_DUR) { in boot_read() 90 #if MYNEWT_VAL(BOOT_SERIAL_DETECT_TIMEOUT) != 0 100 * @return true if the management string was received; 101 * false if the management string was not received 126 if (rc > 0) { in serial_detect_uart_string() [all …]
|
/mcuboot-2.7.6/sim/src/ |
D | image.rs | 94 /// Some(builder) if is possible to test this configuration, or None if 95 /// not possible (for example, if there aren't enough image slots). 100 if cap.present() { in new() 180 let dep: Box<dyn Depender> = if num_images > 1 { in make_no_upgrade_image() 214 if deps.upgrades.iter().any(|u| *u == UpgradeInfo::Held) { in make_image() 410 /// inject failures at chosen steps. Returns None if it was unable to 416 if !self.verify_images(&flash, 0, 1) { in run_basic_upgrade() 428 if Caps::Bootstrap.present() { in run_bootstrap() 432 if result != 0 { in run_bootstrap() 437 if !self.verify_images(&flash, 0, 1) { in run_bootstrap() [all …]
|
/mcuboot-2.7.6/samples/zephyr/ |
D | run-tests.go | 49 if err != nil { 62 if err != nil { 71 if *preBuilt != "" { 72 // If there are pre-built images, open them. 74 if err != nil { 86 if *preBuilt == "" { 90 if err != nil { 97 if err != nil { 103 if err != nil { 108 if err != nil { [all …]
|
D | test-compile.go | 28 if err != nil { 37 if err != nil { 46 // TODO: Should capture the output and show it if 49 if err != nil { 54 if err != nil { 75 if err != nil { 95 if err != nil { 100 if err != nil { 107 if err != nil { 117 if err != nil { [all …]
|