Macros
Key lifetimes

Macros

#define KEYSTORE_PSA_KEY_LIFETIME_VOLATILE   ((KeyStore_PSA_KeyLifetime)PSA_KEY_LIFETIME_VOLATILE)
 
#define KEYSTORE_PSA_KEY_LIFETIME_PERSISTENT   ((KeyStore_PSA_KeyLifetime)PSA_KEY_LIFETIME_PERSISTENT)
 
#define KEYSTORE_PSA_KEY_ID_NULL   ((KeyStore_PSA_KeyFileId)0x0)
 
#define KEYSTORE_PSA_KEY_ID_USER_MIN   ((KeyStore_PSA_KeyFileId)PSA_KEY_ID_USER_MIN)
 
#define KEYSTORE_PSA_KEY_ID_PERSISTENT_USER_MIN   0x41
 
#define KEYSTORE_PSA_KEY_ID_WITH_CERTIFICATE_USER_MAX   0x1fffffff
 
#define KEYSTORE_PSA_KEY_ID_CERTIFICATE_BIT   (1 << 29)
 Bit mask to set 29th bit to indicate certificate storage. More...
 
#define KEYSTORE_PSA_KEY_ID_VENDOR_MIN   ((KeyStore_PSA_KeyFileId)PSA_KEY_ID_VENDOR_MIN)
 
#define KEYSTORE_PSA_KEY_ID_VENDOR_MAX   ((KeyStore_PSA_KeyFileId)PSA_KEY_ID_VENDOR_MAX)
 
#define KEYSTORE_PSA_DEFAULT_OWNER   -1
 

Detailed Description

Macro Definition Documentation

§ KEYSTORE_PSA_KEY_LIFETIME_VOLATILE

#define KEYSTORE_PSA_KEY_LIFETIME_VOLATILE   ((KeyStore_PSA_KeyLifetime)PSA_KEY_LIFETIME_VOLATILE)

A volatile key only exists as long as the handle to it is not closed. The key material is guaranteed to be erased on a power reset.

§ KEYSTORE_PSA_KEY_LIFETIME_PERSISTENT

#define KEYSTORE_PSA_KEY_LIFETIME_PERSISTENT   ((KeyStore_PSA_KeyLifetime)PSA_KEY_LIFETIME_PERSISTENT)

The default storage area for persistent keys.

A persistent key remains in storage until it is explicitly destroyed or until the corresponding storage area is wiped. This specification does not define any mechanism to wipe a storage area, but implementations may provide their own mechanism (for example to perform a factory reset, to prepare for device refurbishment, or to uninstall an application).

This lifetime value is the default storage area for the calling application. Implementations may offer other storage areas designated by other lifetime values as implementation-specific extensions.

§ KEYSTORE_PSA_KEY_ID_NULL

#define KEYSTORE_PSA_KEY_ID_NULL   ((KeyStore_PSA_KeyFileId)0x0)

The null key identifier.

§ KEYSTORE_PSA_KEY_ID_USER_MIN

#define KEYSTORE_PSA_KEY_ID_USER_MIN   ((KeyStore_PSA_KeyFileId)PSA_KEY_ID_USER_MIN)

The minimum value for a key identifier chosen by the application.

§ KEYSTORE_PSA_KEY_ID_PERSISTENT_USER_MIN

#define KEYSTORE_PSA_KEY_ID_PERSISTENT_USER_MIN   0x41

The minimum value for a persistent key identifier chosen by the application.

§ KEYSTORE_PSA_KEY_ID_WITH_CERTIFICATE_USER_MAX

#define KEYSTORE_PSA_KEY_ID_WITH_CERTIFICATE_USER_MAX   0x1fffffff

The maximum value for a persistent key identifier with associated certificate chosen by the application. KeyStore uses Bit 29 in KeyID to indicate certificate storage. Application may choose any key ID less than 2^29 for persistent keys Persistent Key ID limit [KEYSTORE_PSA_MAX_VOLATILE_KEY_ID + 1, KEYSTORE_PSA_KEY_ID_USER_MIN] (Setting bit 30 makes KeyID greater than PSA_KEY_ID_USER_MIN which will fall into VENDOR limit) (Setting bit 31 makes KeyID greater than PSA_KEY_ID_VENDOR_MAX which is not a valid KeyID)

§ KEYSTORE_PSA_KEY_ID_CERTIFICATE_BIT

#define KEYSTORE_PSA_KEY_ID_CERTIFICATE_BIT   (1 << 29)

Bit mask to set 29th bit to indicate certificate storage.

§ KEYSTORE_PSA_KEY_ID_VENDOR_MIN

#define KEYSTORE_PSA_KEY_ID_VENDOR_MIN   ((KeyStore_PSA_KeyFileId)PSA_KEY_ID_VENDOR_MIN)

The minimum value for a key identifier chosen by the implementation.

§ KEYSTORE_PSA_KEY_ID_VENDOR_MAX

#define KEYSTORE_PSA_KEY_ID_VENDOR_MAX   ((KeyStore_PSA_KeyFileId)PSA_KEY_ID_VENDOR_MAX)

The maximum value for a key identifier chosen by the implementation.

§ KEYSTORE_PSA_DEFAULT_OWNER

#define KEYSTORE_PSA_DEFAULT_OWNER   -1

Default Key Owner

© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale