McuMgrImageTlv

open class McuMgrImageTlv

Represents a type-length-value table for firmware images using McuBoot or the legacy Apache Mynewt bootloader.

For more info about McuBoot and image format see: https://juullabs-oss.github.io/mcuboot/design.html

Properties

Link copied to clipboard
Image depends on other image
Link copied to clipboard
ECDSA of hash output
Link copied to clipboard
ECDSA of hash output
Link copied to clipboard
ED25519 of hash output
Link copied to clipboard
Key encrypted with ECIES P256
Link copied to clipboard
Key encrypted with AES-KW-128
Link copied to clipboard
Key encrypted with RSA-OAEP-2048
Link copied to clipboard
val IMG_TLV_INFO_MAGIC: Int = 26887
Magic number for the unprotected TLV
Link copied to clipboard
Magic number for the protected TLV
Link copied to clipboard
RSA2048 of hash output
Link copied to clipboard
RSA3072 of hash output
Link copied to clipboard
SHA256 of image hdr and body
Link copied to clipboard
Hash of the public key.
Link copied to clipboard
SHA384 of image hdr and body
Link copied to clipboard
SHA512 of image hdr and body

Functions

Link copied to clipboard
open fun fromBytes(data: Array<Byte>, offset: Int, isLegacy: Boolean): McuMgrImageTlv
Link copied to clipboard
open fun getHash(): @Nullable Array<Byte>
Link copied to clipboard
open fun getSize(): Int
Link copied to clipboard
@Nullable
open fun getTlvInfo(): @Nullable McuMgrImageTlvInfo
Link copied to clipboard
@NotNull
open fun getTrailerEntries(): @NotNull List<McuMgrImageTlvTrailerEntry>
Link copied to clipboard
open fun isLegacy(): Boolean
Link copied to clipboard
open fun isProtected(): Boolean