TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
log_entry Struct Reference

Structure of a single log entry in the log. More...

#include <secure_fw/partitions/audit_logging/audit_core.h>

Detailed Description

Structure of a single log entry in the log.

This can't be represented as a structure because the payload is of variable size, i.e.

Offset Name
0 TIMESTAMP
8 IV_COUNTER
12 PARTITION ID
16 SIZE
20 RECORD ID
24 PAYLOAD
20+SIZEMAC

SIZE: at least LOG_MIN_SIZE bytes, known only at runtime. It's the size of the (RECORD_ID, PAYLOAD) fields

MAC_SIZE: known at build time (currently, 4 bytes)

At runtime, when adding a record, the value of SIZE has to be checked and must be less than LOG_SIZE - MAC_SIZE - 12 and equal or greater than LOG_MIN_SIZE


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