Loading...
Searching...
No Matches
id.h File Reference

Key ID definitions for the PSA Crypto API. More...

Detailed Description

#include <stdint.h>
+ Include dependency graph for id.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define PSA_KEY_ID_NULL   ((psa_key_id_t)0)
 The null key identifier.
 
#define PSA_KEY_ID_USER_MIN   ((psa_key_id_t)0x00000001)
 The minimum value for a key identifier chosen by the application.
 
#define PSA_KEY_ID_USER_MAX   ((psa_key_id_t)0x3fffffff)
 The maximum value for a key identifier chosen by the application.
 
#define PSA_KEY_ID_VENDOR_MIN   ((psa_key_id_t)0x40000000)
 The minimum value for a key identifier chosen by the implementation.
 
#define PSA_KEY_ID_VENDOR_MAX   ((psa_key_id_t)0x7fffffff)
 The maximum value for a key identifier chosen by the implementation.
 
typedef uint32_t psa_key_id_t
 Key identifier.
 

Macro Definition Documentation

◆ PSA_KEY_ID_NULL

#define PSA_KEY_ID_NULL   ((psa_key_id_t)0)

The null key identifier.

The null key identifier is always invalid, except when used without in a call to psa_destroy_key() which will return PSA_SUCCESS.

Definition at line 45 of file id.h.

◆ PSA_KEY_ID_USER_MAX

#define PSA_KEY_ID_USER_MAX   ((psa_key_id_t)0x3fffffff)

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

Definition at line 55 of file id.h.

◆ PSA_KEY_ID_USER_MIN

#define PSA_KEY_ID_USER_MIN   ((psa_key_id_t)0x00000001)

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

Definition at line 50 of file id.h.

◆ PSA_KEY_ID_VENDOR_MAX

#define PSA_KEY_ID_VENDOR_MAX   ((psa_key_id_t)0x7fffffff)

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

Definition at line 65 of file id.h.

◆ PSA_KEY_ID_VENDOR_MIN

#define PSA_KEY_ID_VENDOR_MIN   ((psa_key_id_t)0x40000000)

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

Definition at line 60 of file id.h.

Typedef Documentation

◆ psa_key_id_t

typedef uint32_t psa_key_id_t

Key identifier.

A key identifier can be a permanent name for a persistent key, or a transient reference to volatile key.

Definition at line 37 of file id.h.