Home
last modified time | relevance | path

Searched full:type (Results 1 – 25 of 94) sorted by relevance

1234

/mcuboot-2.7.6/boot/bootutil/src/
Dtlv.c32 * @param type Type of TLV to look for
40 const struct flash_area *fap, uint16_t type, bool prot) in bootutil_tlv_iter_begin() argument
73 it->type = type; in bootutil_tlv_iter_begin()
88 * @param type If not NULL returns the type of TLV found
90 * @returns 0 if a TLV with with matching type was found
91 * 1 if no more TLVs with matching type are available
96 uint16_t *type) in bootutil_tlv_iter_next() argument
120 if (it->type == IMAGE_TLV_ANY || tlv.it_type == it->type) { in bootutil_tlv_iter_next()
121 if (type != NULL) { in bootutil_tlv_iter_next()
122 *type = tlv.it_type; in bootutil_tlv_iter_next()
Dimage_validate.c161 * Currently, we only support being able to verify one type of
163 * call. List the type of TLV we are expecting. If we aren't
170 #error "Only a single signature type is supported!"
340 uint16_t type; in bootutil_img_validate() local
381 rc = bootutil_tlv_iter_next(&it, &off, &len, &type); in bootutil_img_validate()
388 if (type == IMAGE_TLV_SHA256) { in bootutil_img_validate()
410 } else if (type == IMAGE_TLV_KEYHASH) { in bootutil_img_validate()
428 } else if (type == IMAGE_TLV_PUBKEY) { in bootutil_img_validate()
446 } else if (type == EXPECTED_SIG_TLV) { in bootutil_img_validate()
465 } else if (type == IMAGE_TLV_SEC_CNT) { in bootutil_img_validate()
Dboot_record.c137 uint16_t type; in boot_save_boot_status() local
159 rc = bootutil_tlv_iter_next(&it, &offset, &len, &type); in boot_save_boot_status()
166 if (type == IMAGE_TLV_BOOT_RECORD) { in boot_save_boot_status()
178 } else if (type == IMAGE_TLV_SHA256) { in boot_save_boot_status()
Dloader.c832 * and a swap type of "none" is indicated.
834 * @return The type of swap to perform (BOOT_SWAP_TYPE...)
1281 * the swap type if necessary.
1306 * Modify the swap type to decrease the version number of the image in boot_verify_slot_dependency()
1387 /* Verify dependency and modify the swap type if not satisfied. */ in boot_verify_slot_dependencies()
1402 * TLV area are all satisfied and update the related swap type if necessary.
1535 /* Determine the type of swap operation being resumed from the in boot_complete_partial_swap()
1536 * `swap-type` trailer field. in boot_complete_partial_swap()
1588 * the REVERT swap type has been determined for the previous images that had in boot_review_image_swap_types()
1597 * In this scenario we must check the swap type of the current image. in boot_review_image_swap_types()
[all …]
/mcuboot-2.7.6/ext/mbedtls-asn1/include/mbedtls/
Dpk.h54 #define MBEDTLS_ERR_PK_TYPE_MISMATCH -0x3F00 /**< Type mismatch, eg attempt to encrypt with …
114 mbedtls_pk_debug_type type; member
191 * \brief Return information associated with the given PK type
193 * \param pk_type PK type to search for.
195 * \return The PK info associated with the type or NULL if not found.
223 * and allocates the type-specific PK subcontext.
225 * \param ctx Context to initialize. Must be empty (type NONE).
241 * \param ctx Context to initialize. Must be empty (type NONE).
279 * \brief Tell if a context can do the operation given by type
282 * \param type Target type
[all …]
Dmd.h121 * associated with the given digest type.
123 * \param md_type The type of digest to search for.
211 * \note The two contexts must have the same type,
238 * \brief This function extracts the message-digest type from the
244 * \return The type of the message digest.
/mcuboot-2.7.6/boot/boot_serial/src/
Dcbor_common.h19 /** Convenience type that allows pointing to strings directly inside the payload
84 /** Function pointer type used with multi_decode.
86 * This type is compatible with all decoding functions here and in the generated
94 * The major type is represented in the 3 first bits of the header byte.
105 CBOR_MAJOR_TYPE_PRIM = 7, ///! Primitive Type
110 #define PTR_VALUE_IN_RANGE(type, res, min, max) \ argument
111 (((min == NULL) || (*(type *)res >= *(type *)min)) \
112 && ((max == NULL) || (*(type *)res <= *(type *)max)))
Dcbor_decode.h29 * - Strings are kept in the container type cbor_string_type_t, which is a
34 * - There is some type casting going on under the hood to make the code
35 * generator friendly. See especially the processor_t type which is compatible
51 * | Type | info |
89 * @retval false If the value has the wrong type, the payload overflowed, the
172 /** Skip a single element, regardless of type and value. */
179 /** Decode 0 or more elements with the same type and constraints.
Dcbor_decode.c35 /** Extract the major type, i.e. the first 3 bits of the header byte. */
164 /* Value to be read doesn't have the right type. */ in intx32_decode()
206 /* Value to be read doesn't have the right type. */ in uintx32_decode()
414 /* Value to be read doesn't have the right type. */ in primx_decode()
483 /* Value to be read doesn't have the right type. */ in double_decode()
511 "'any' type cannot be returned, only skipped.\n"); in any_decode()
562 /* Value to be read doesn't have the right type. */ in tag_decode()
/mcuboot-2.7.6/scripts/imgtool/
Dmain.py96 @click.option('-t', '--type', metavar='type', required=True,
97 type=click.Choice(keygens.keys()), prompt=True,
101 def keygen(type, key, password): argument
103 keygens[type](key, password)
107 type=click.Choice(valid_langs))
237 @click.option('-R', '--erased-val', type=click.Choice(['0', '0xff']),
240 @click.option('-x', '--hex-addr', type=BasedIntParamType(), required=False,
242 @click.option('-L', '--load-addr', type=BasedIntParamType(), required=False,
244 @click.option('-F', '--rom-fixed', type=BasedIntParamType(), required=False,
254 type=click.Choice(['128','256']),
[all …]
Dboot_record.py27 TYPE = 1 variable in SwComponent
39 SwComponent.TYPE: sw_type,
/mcuboot-2.7.6/ext/tinycrypt/documentation/
Dtinycrypt.rst21 * Type of primitive: Hash function.
27 * Type of primitive: Message authentication code.
33 * Type of primitive: Pseudo-random number generator (256-bit strength).
39 * Type of primitive: Block cipher.
45 * Type of primitive: Encryption mode of operation.
51 * Type of primitive: Encryption mode of operation.
57 * Type of primitive: Message authentication code.
63 * Type of primitive: Authenticated encryption.
69 * Type of primitive: Pseudo-random number generator (128-bit strength).
75 * Type of primitive: Key exchange based on curve NIST p-256.
[all …]
/mcuboot-2.7.6/boot/bootutil/include/bootutil/
Dboot_record.h31 * @param[in] major_type TLV major type, identify consumer
32 * @param[in] minor_type TLV minor type, identify TLV type
Dbench.h27 * `bench_state_t` type that holds the information needed for the
35 * These are simple barrier-type benchmarks. If a platform has
53 /* The type needs to take space. As long as it remains unused, the C
Dbootutil_public.h102 * Extract the swap type and image number from image trailers's swap_info
108 /* Construct the swap_info field from swap type and image number */
109 #define BOOT_SET_SWAP_INFO(swap_info, image, type) { \ argument
111 assert((type) < 0xF); \
113 | (type); \
Dimage.h78 * Currently the only image hash type is SHA256.
170 uint16_t type; member
179 const struct flash_area *fap, uint16_t type,
182 uint16_t *len, uint16_t *type);
Dboot_status.h40 * header is a type field (tly_type) which identify the consumer of the
56 * belongs to and the claim part identifies the exact type of the data.
67 /* General macros to handle TLV type */
/mcuboot-2.7.6/boot/zephyr/include/
Dmcuboot-mbedtls-cfg.h13 * configuration depends on the signature type, so this file just
33 #error "Cannot configure mbedTLS; signature type is unknown."
/mcuboot-2.7.6/testplan/mynewt/
Dproject.yml27 type: github
33 type: github
/mcuboot-2.7.6/boot/cypress/platforms/PSOC_062_2M/CM0P/GCC_ARM/
Dstartup_psoc6_02_cm0plus.S138 .type Cy_OnResetUser, %function
147 .type Reset_Handler, %function
301 .type Default_Handler, %function
306 .type Cy_SysLib_FaultHandler, %function
311 .type Fault_Handler, %function
/mcuboot-2.7.6/docs/
Ddesign.md123 Optional type-length-value records (TLVs) containing image metadata are placed
336 old image marks itself "OK" when it boots, the next boot will have swap type
343 The "swap type" is a high-level representation of the outcome of the
344 boot. Subsequent sections describe how mcuboot determines the swap type from
454 - Swap type: Stored in bits 0-3. Indicating the type of swap operation in
456 determine the type of operation to perform. This field contains one of the
491 At startup, the boot loader determines the boot swap type by inspecting the
580 `swap info` field from the active trailer and extracting the swap type from bits
658 + Mark the swap type as `None`.
668 + Set the previously determined swap type for the current image.
[all …]
Dreadme-riot.md30 version information, and trailer type-length-value records (TLVs) with
38 default key type is RSA-2048.
/mcuboot-2.7.6/sim/src/
Dlib.rs41 bootsim run --device TYPE [--align SIZE]
48 --device TYPE MCU to simulate
101 type Value = AlignArg;
/mcuboot-2.7.6/sim/simflash/src/
Dlib.rs8 //! This module is capable of simulating the type of NOR flash commonly used in microcontrollers.
30 pub type Result<T> = std::result::Result<T, FlashError>;
146 pub type SimMultiFlash = HashMap<u8, SimFlash>;
289 type Item = Sector;
363 // Helper checks for the result type.
/mcuboot-2.7.6/boot/cypress/platforms/
Dcycfg_pins.c48 .type = CYHAL_RSC_GPIO,
72 .type = CYHAL_RSC_GPIO,

1234