ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_ota_manifest_t Struct Reference

Decoded representation of the server manifest. More...

#include <ra8_ota.h>

Data Fields

char version [k_ra8_ota_version_str_bytes]
 Firmware version string.
char image_url [k_ra8_ota_url_max_bytes]
 HTTPS URL of the image blob.
uint32_t image_size_bytes
 Image size on the wire.
uint8_t image_sha256 [k_ra8_ota_sha256_bytes]
 Expected digest.
uint8_t signature [k_ra8_ota_signature_max_bytes]
 ECDSA signature over digest.
uint16_t signature_len
 Bytes used in signature.

Detailed Description

Decoded representation of the server manifest.

The manifest the server returns is JSON; ra8_ota decodes the relevant fields here. The struct is also used as the input to ra8_ota_download_to_inactive_bank and ra8_ota_verify_signature.

Invariant
image_size_bytes <= k_ra8_ota_max_image_bytes.
signature_len <= k_ra8_ota_signature_max_bytes.

Definition at line 115 of file ra8_ota.h.

Field Documentation

◆ image_sha256

uint8_t ra8_ota_manifest_t::image_sha256[k_ra8_ota_sha256_bytes]

Expected digest.

Definition at line 119 of file ra8_ota.h.

Referenced by app_make_manifest(), internal_manifest_decode_crypto(), and ra8_ota_verify_signature().

◆ image_size_bytes

uint32_t ra8_ota_manifest_t::image_size_bytes

◆ image_url

char ra8_ota_manifest_t::image_url[k_ra8_ota_url_max_bytes]

HTTPS URL of the image blob.

Definition at line 117 of file ra8_ota.h.

Referenced by app_make_manifest(), internal_bind_manifest_material(), priv_ota_manifest_decode(), and ra8_ota_download_to_inactive_bank().

◆ signature

uint8_t ra8_ota_manifest_t::signature[k_ra8_ota_signature_max_bytes]

ECDSA signature over digest.

Definition at line 120 of file ra8_ota.h.

Referenced by app_make_manifest(), internal_manifest_decode_crypto(), and ra8_ota_verify_signature().

◆ signature_len

uint16_t ra8_ota_manifest_t::signature_len

Bytes used in signature.

Definition at line 121 of file ra8_ota.h.

Referenced by app_make_manifest(), internal_manifest_decode_crypto(), and ra8_ota_verify_signature().

◆ version

char ra8_ota_manifest_t::version[k_ra8_ota_version_str_bytes]

Firmware version string.

Definition at line 116 of file ra8_ota.h.

Referenced by app_make_manifest(), internal_bind_manifest_material(), and priv_ota_manifest_decode().


The documentation for this struct was generated from the following file: