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

Forward declaration of the static-pool slot type. More...

#include <ra8_psa_crypto_internal.h>

Collaboration diagram for ra8_psa_key_handle:

Data Fields

bool in_use
 Slot allocated.
ra8_psa_key_attr_t attr
 Cached caller attributes.
size_t key_len
 Bytes valid in key.
uint8_t key [k_ra8_psa_max_key_bytes]
 Raw key material (fake).
psa_key_id_t psa_id
 Underlying PSA key identifier.

Detailed Description

Forward declaration of the static-pool slot type.

Concrete pool slot backing one ra8_psa_key_t.

Defined inside ra8_psa_crypto.c. Callers only ever see the typed pointer; the slot stores the underlying psa_key_id_t, the cached algorithm metadata, and an in_use flag.

One slot per imported key. in_use doubles as the bitmap bit; the array index is the slot index [0, k_ra8_psa_max_keys).

Invariant
in_use is true if and only if key_len > 0.

Definition at line 152 of file ra8_psa_crypto_internal.h.

Field Documentation

◆ attr

◆ in_use

bool ra8_psa_key_handle::in_use

◆ key

uint8_t ra8_psa_key_handle::key[k_ra8_psa_max_key_bytes]

◆ key_len

size_t ra8_psa_key_handle::key_len

◆ psa_id

psa_key_id_t ra8_psa_key_handle::psa_id

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