![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#include "psa_audit_defs.h"
#include "psa/error.h"
Go to the source code of this file.
Data Structures | |
struct | audit_tlv_entry |
TLV entry structure with a flexible array member. More... | |
struct | log_hdr |
Fixed size header for a log record. More... | |
struct | log_tlr |
Fixed size logging entry trailer. More... | |
Macros | |
#define | UNIFORM_SIGNATURE_API(api_name) psa_status_t api_name(psa_invec[], size_t, psa_outvec[], size_t) |
#define | LOG_MIN_SIZE (4) |
Minimum size of the encrypted part. More... | |
#define | LOG_MAC_SIZE (4) |
Size in bytes of the MAC for each entry. More... | |
#define | LOG_HDR_SIZE (sizeof(struct log_hdr)) |
Size in bytes of the (fixed) header for each entry. More... | |
#define | LOG_TLR_SIZE (sizeof(struct log_tlr)) |
Size in bytes of the (fixed) trailer for each entry. More... | |
#define | LIST_TFM_AUDIT_UNIFORM_SIGNATURE_API |
#define | X(api_name) UNIFORM_SIGNATURE_API(api_name); |
Enumerations | |
enum | audit_tlv_type { TLV_TYPE_ID = 0, TLV_TYPE_AUTH = 1, TLV_TYPE_MAX = INT_MAX } |
Possible types for a TLV entry in payload. More... | |
Functions | |
psa_status_t | audit_core_init (void) |
Initializes the Audit logging service during the TFM boot up process. More... | |
psa_status_t | audit_core_delete_record (psa_invec[], size_t, psa_outvec[], size_t) |
psa_status_t | audit_core_get_info (psa_invec[], size_t, psa_outvec[], size_t) |
psa_status_t | audit_core_get_record_info (psa_invec[], size_t, psa_outvec[], size_t) |
psa_status_t | audit_core_add_record (psa_invec[], size_t, psa_outvec[], size_t) |
psa_status_t | audit_core_retrieve_record (psa_invec[], size_t, psa_outvec[], size_t) |
#define LIST_TFM_AUDIT_UNIFORM_SIGNATURE_API |
Definition at line 139 of file audit_core.h.
#define LOG_HDR_SIZE (sizeof(struct log_hdr)) |
Size in bytes of the (fixed) header for each entry.
Definition at line 121 of file audit_core.h.
#define LOG_MAC_SIZE (4) |
Size in bytes of the MAC for each entry.
Definition at line 92 of file audit_core.h.
#define LOG_MIN_SIZE (4) |
Minimum size of the encrypted part.
Definition at line 60 of file audit_core.h.
#define LOG_TLR_SIZE (sizeof(struct log_tlr)) |
Size in bytes of the (fixed) trailer for each entry.
Definition at line 128 of file audit_core.h.
#define UNIFORM_SIGNATURE_API | ( | api_name | ) | psa_status_t api_name(psa_invec[], size_t, psa_outvec[], size_t) |
Definition at line 23 of file audit_core.h.
#define X | ( | api_name | ) | UNIFORM_SIGNATURE_API(api_name); |
Definition at line 146 of file audit_core.h.
enum audit_tlv_type |
Possible types for a TLV entry in payload.
Enumerator | |
---|---|
TLV_TYPE_ID | |
TLV_TYPE_AUTH | |
TLV_TYPE_MAX |
Definition at line 68 of file audit_core.h.