Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Key lifetimes

Key lifetimes

Typedefs

typedef uint32_t psa_key_lifetime_t
 Encoding of key lifetimes.
typedef uint32_t psa_key_id_t
 Encoding of identifiers of persistent keys.

Typedef Documentation

typedef uint32_t psa_key_id_t

Encoding of identifiers of persistent keys.

  • Applications may freely choose key identifiers in the range PSA_KEY_ID_USER_MIN to PSA_KEY_ID_USER_MAX.
  • Implementations may define additional key identifiers in the range PSA_KEY_ID_VENDOR_MIN to PSA_KEY_ID_VENDOR_MAX.
  • 0 is reserved as an invalid key identifier.
  • Key identifiers outside these ranges are reserved for future use.

Definition at line 194 of file crypto_types.h.

typedef uint32_t psa_key_lifetime_t

Encoding of key lifetimes.

The lifetime of a key indicates where it is stored and what system actions may create and destroy it.

Keys with the lifetime PSA_KEY_LIFETIME_VOLATILE are automatically destroyed when the application terminates or on a power reset.

Keys with a lifetime other than PSA_KEY_LIFETIME_VOLATILE are said to be _persistent_. Persistent keys are preserved if the application or the system restarts. Persistent keys have a key identifier of type psa_key_id_t. The application can call psa_open_key() to open a persistent key that it created previously.

Definition at line 177 of file crypto_types.h.