SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
Loading...
Searching...
No Matches
fw_hash.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  fw_hash_diag_t

Macros

#define FW_HASH_HEX_LEN   (65)

Functions

void fw_hash_compute_at_boot (void)
 Compute and cache the SHA-256 identity digest (about 80 ms once); idempotent.
const char * fw_hash_hex (void)
 The cached 64-char digest; always non-NULL — "unknown" before compute. Never free it.
void fw_hash_prefix8 (char *out9)
 First 8 hex chars + NUL into out9 (at least 9 bytes). No caller anywhere.
void fw_hash_get_diagnostics (fw_hash_diag_t *out)
 Fill a caller-owned hash-diagnostics snapshot for the _diag block of bento.fw.query.

Macro Definition Documentation

◆ FW_HASH_HEX_LEN

#define FW_HASH_HEX_LEN   (65)