Home
last modified time | relevance | path

Searched refs:tlv (Results 1 – 11 of 11) sorted by relevance

/mcuboot-3.7.0/boot/bootutil/src/
Dtlv.c98 struct image_tlv tlv; in bootutil_tlv_iter_next() local
110 rc = LOAD_IMAGE_DATA(it->hdr, it->fap, it->tlv_off, &tlv, sizeof tlv); in bootutil_tlv_iter_next()
120 if (it->type == IMAGE_TLV_ANY || tlv.it_type == it->type) { in bootutil_tlv_iter_next()
122 *type = tlv.it_type; in bootutil_tlv_iter_next()
124 *off = it->tlv_off + sizeof(tlv); in bootutil_tlv_iter_next()
125 *len = tlv.it_len; in bootutil_tlv_iter_next()
126 it->tlv_off += sizeof(tlv) + tlv.it_len; in bootutil_tlv_iter_next()
130 it->tlv_off += sizeof(tlv) + tlv.it_len; in bootutil_tlv_iter_next()
/mcuboot-3.7.0/ci/fih_test_docker/
Ddamage_image.py100 tlv = ImageTLV()
101 (tlv.it_type, _, tlv.it_len) = struct.unpack('<BBH', in_file.read(4))
102 (tlv.it_value) = struct.unpack('<{:d}s'.format(tlv.it_len), in_file.read(tlv.it_len))
103 return tlv
127 def damage_tlv(image_offset, tlv_off, tlv, out_file_content): argument
130 value = bytearray(tlv.it_value[0])
135 def is_valid_signature(tlv): argument
136 return tlv.it_type == TLV_VALUES['RSA2048'] or tlv.it_type == TLV_VALUES['RSA3072']
176 tlv = ImageTLV.read_from_binary(in_file)
178 …lv {:24s} len = {:4d}, len = {:4d}".format(get_tlv_type_string(tlv.it_type), tlv.it_len, len(tlv)))
[all …]
/mcuboot-3.7.0/scripts/imgtool/
Ddumpinfo.py101 for tlv in tlv_list:
103 tlv_type, tlv_length, tlv_data = tlv.keys()
105 if tlv[tlv_type] in TLV_TYPES:
107 tlv_type, TLV_TYPES[tlv[tlv_type]], hex(tlv[tlv_type])))
110 tlv_type, "UNKNOWN", hex(tlv[tlv_type])))
111 print(" " * indent, "{}: ".format(tlv_length), hex(tlv[tlv_length]))
114 for j, data in enumerate(tlv[tlv_data]):
116 if ((j + 1) % 8 == 0) and ((j + 1) != len(tlv[tlv_data])):
Dimage.py465 tlv = TLV(self.endian)
472 tlv.add(hash_tlv, digest)
486 tlv.add('KEYHASH', pubbytes)
488 tlv.add('PUBKEY', pub)
501 tlv.add(key.sig_tlv(), sig)
504 tlv.add(pub_key.sig_tlv(), fixed_sig['value'])
527 tlv.add('ENCRSA2048', cipherkey)
534 tlv.add('ENCEC256', enctlv)
536 tlv.add('ENCX25519', enctlv)
548 self.payload += tlv.get()
[all …]
Dmain.py446 for tlv in custom_tlv:
447 tag = int(tlv[0], 0)
454 value = tlv[1]
/mcuboot-3.7.0/boot/bootutil/
DCMakeLists.txt34 src/tlv.c
/mcuboot-3.7.0/sim/src/
Dimage.rs53 use crate::tlv::{ManifestGen, TlvGen, TlvFlags};
1763 let mut tlv: Box<dyn ManifestGen> = Box::new(make_tlv()); in install_image() localVariable
1765 tlv.set_ignore_ram_load_flag(); in install_image()
1768 tlv.set_security_counter(security_counter); in install_image()
1773 tlv.add_dependency(deps.other_id(), &dep); in install_image()
1793 let tlv_len = tlv.estimate_size(); in install_image()
1800 let tlv_len = tlv.estimate_size(); in install_image()
1812 magic: tlv.get_magic(), in install_image()
1815 protect_tlv_size: tlv.protect_size(), in install_image()
1817 flags: tlv.get_flags(), in install_image()
[all …]
Dlib.rs18 mod tlv; module
/mcuboot-3.7.0/scripts/
Dmcubin.bt120 struct TLV tlv;
/mcuboot-3.7.0/boot/espressif/
DCMakeLists.txt232 ${BOOTUTIL_DIR}/src/tlv.c
/mcuboot-3.7.0/boot/zephyr/
DCMakeLists.txt99 ${BOOT_DIR}/bootutil/src/tlv.c