Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 18 of 18) sorted by relevance

/mcuboot-latest/boot/espressif/port/
Desp_mcuboot.c166 uint32_t bytes = MIN(bytes_remaining + addr_offset, sizeof(read_data)); in aligned_flash_read() local
167 if (bootloader_flash_read(aligned_addr, read_data, ALIGN_UP(bytes, 4), true) != ESP_OK) { in aligned_flash_read()
173 uint32_t bytes_read = bytes - addr_offset; in aligned_flash_read()
180 uint32_t offset = bytes; in aligned_flash_read()
183 bytes = MIN(bytes_remaining, sizeof(read_data)); in aligned_flash_read()
184 … if (bootloader_flash_read(aligned_addr + offset, read_data, ALIGN_UP(bytes, 4), true) != ESP_OK) { in aligned_flash_read()
188 memcpy(&((uint8_t *)dest)[bytes_read], read_data, bytes); in aligned_flash_read()
190 offset += bytes; in aligned_flash_read()
191 bytes_read += bytes; in aligned_flash_read()
192 bytes_remaining -= bytes; in aligned_flash_read()
[all …]
/mcuboot-latest/boot/bootutil/src/
Dimage_rsa.c93 int bytes; in pss_mgf1() local
103 bytes = PSS_HLEN; in pss_mgf1()
104 if (bytes > count) in pss_mgf1()
105 bytes = count; in pss_mgf1()
107 memcpy(mask, htmp, bytes); in pss_mgf1()
108 mask += bytes; in pss_mgf1()
109 count -= bytes; in pss_mgf1()
/mcuboot-latest/scripts/imgtool/
Dimage.py151 return bytes()
154 return header + bytes(self.buf)
295 self.boot_magic = bytes([
303 align = bytes([msb, lsb]) if self.endian == "big" else bytes([lsb, msb])
304 self.boot_magic = align + bytes([0x2d, 0xe1,
358 self.payload = bytes([self.erased_val] * self.header_size) + \
373 self.payload = bytes([self.erased_val] * self.header_size) + \
389 h.frombytes(bytes=self.payload, offset=self.base_addr)
404 bytes(flag))
406 bytes(self.boot_magic))
[all …]
Ddumpinfo.py32 BOOT_MAGIC = bytes([
37 BOOT_MAGIC_2 = bytes([
Dmain.py498 custom_tlvs[tag] = bytes.fromhex(value[2:])
/mcuboot-latest/docs/
Decdsa.md79 require 33 bytes instead of 32. This means that the length of the
80 signature will vary by a couple of bytes, depending on whether one or
84 removed any trailing 0 bytes from the data block. This turned out to be fine 255 out of 256
86 signature ended in a zero, MCUboot would remove too many bytes and render the
Dimgtool.md95 --pad-sig Add 0-2 bytes of padding to ECDSA signature
98 --pad-header Add --header-size zeroed bytes at the
103 --pad Pad image to --slot-size bytes, adding
159 is used with an Intel Hex file, `--header-size` bytes will be subtracted from
161 adjust for the new bytes prepended to the file. The load address of all data
DPORTING.md146 /*< Reads `len` bytes of flash memory at `off` to the buffer at `dst` */
149 /*< Writes `len` bytes of flash memory at `off` from the buffer at `src` */
152 /*< Erases `len` bytes of flash memory at `off` */
156 /*< What is value is read from erased flash bytes. */
Dcompression_format.md18 two bytes.
Dreadme-zephyr.md171 with a sector size of 512 bytes and secondar slot in external off-chip flash
Drelease-notes.md167 been tested with a `BOOT_MAX_ALIGN` up to 32 bytes.
/mcuboot-latest/ext/tinycrypt/lib/include/tinycrypt/
Decc.h529 void uECC_vli_nativeToBytes(uint8_t *bytes, int num_bytes,
538 void uECC_vli_bytesToNative(unsigned int *native, const uint8_t *bytes,
/mcuboot-latest/scripts/imgtool/keys/
Dgeneral.py21 if isinstance(self.file_in, (str, bytes, os.PathLike)):
/mcuboot-latest/ext/tinycrypt/documentation/
Dtinycrypt.rst200 the nonce size, which is: 15-q bytes. The maximum payload length for those
201 invocations is defined as 2^(8q) bytes.
207 The nonce size is: 13 bytes.
209 The maximum payload length is: 2^16 bytes = 65 KB.
217 0 and (2^16 - 2^8) = 65280 bytes.
/mcuboot-latest/boot/zephyr/
DKconfig.serial_recovery82 fragments of 128-bytes, this should not need to be changed unless a
197 bytes of flash).
/mcuboot-latest/ext/tinycrypt/lib/source/
Decc.c814 void uECC_vli_nativeToBytes(uint8_t *bytes, int num_bytes, in uECC_vli_nativeToBytes() argument
820 bytes[i] = native[b / uECC_WORD_SIZE] >> (8 * (b % uECC_WORD_SIZE)); in uECC_vli_nativeToBytes()
825 void uECC_vli_bytesToNative(unsigned int *native, const uint8_t *bytes, in uECC_vli_bytesToNative() argument
833 (uECC_word_t)bytes[i] << (8 * (b % uECC_WORD_SIZE)); in uECC_vli_bytesToNative()
/mcuboot-latest/sim/src/
Dtlv.rs95 fn add_bytes(&mut self, bytes: &[u8]); in add_bytes()
342 fn add_bytes(&mut self, bytes: &[u8]) { in add_bytes()
343 self.payload.extend_from_slice(bytes); in add_bytes()
/mcuboot-latest/boot/mbed/
Dmcuboot_imgtool.cmake99 …pad-header # this tells imgtool to insert the entire header, including any necessary padding bytes.