Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Return values of the PSA Secure Storage API. More...

#include <stdint.h>

Go to the source code of this file.

#define PSA_SUCCESS   ((psa_status_t)0)
 The operation completed successfully.
#define PSA_ERROR_GENERIC_ERROR   ((psa_status_t)-132)
 An unspecified internal failure happened.
#define PSA_ERROR_NOT_PERMITTED   ((psa_status_t)-133)
 An entry associated with the provided uid already exists and was created with PSA_STORAGE_FLAG_WRITE_ONCE.
#define PSA_ERROR_NOT_SUPPORTED   ((psa_status_t)-134)
 The function is not supported or one or more of the flags provided in create_flags are not supported or not valid.
#define PSA_ERROR_INVALID_ARGUMENT   ((psa_status_t)-135)
 One or more arguments other than create_flags are invalid.
#define PSA_ERROR_ALREADY_EXISTS   ((psa_status_t)-139)
 An entry with the provided uid already exists.
#define PSA_ERROR_DOES_NOT_EXIST   ((psa_status_t)-140)
 The provided uid was not found in the storage.
#define PSA_ERROR_INSUFFICIENT_STORAGE   ((psa_status_t)-142)
 There is insufficient space on the storage medium.
#define PSA_ERROR_STORAGE_FAILURE   ((psa_status_t)-146)
 The physical storage has failed (fatal error).
#define PSA_ERROR_INVALID_SIGNATURE   ((psa_status_t)-149)
 The data associated with uid failed authentication.
#define PSA_ERROR_DATA_CORRUPT   ((psa_status_t)-152)
 The data associated with uid is corrupt.
typedef int32_t psa_status_t
 Function return status.

Detailed Description

Return values of the PSA Secure Storage API.

Macro Definition Documentation

◆ PSA_ERROR_ALREADY_EXISTS

#define PSA_ERROR_ALREADY_EXISTS   ((psa_status_t)-139)

An entry with the provided uid already exists.

◆ PSA_ERROR_DATA_CORRUPT

#define PSA_ERROR_DATA_CORRUPT   ((psa_status_t)-152)

The data associated with uid is corrupt.

◆ PSA_ERROR_DOES_NOT_EXIST

#define PSA_ERROR_DOES_NOT_EXIST   ((psa_status_t)-140)

The provided uid was not found in the storage.

◆ PSA_ERROR_GENERIC_ERROR

#define PSA_ERROR_GENERIC_ERROR   ((psa_status_t)-132)

An unspecified internal failure happened.

◆ PSA_ERROR_INSUFFICIENT_STORAGE

#define PSA_ERROR_INSUFFICIENT_STORAGE   ((psa_status_t)-142)

There is insufficient space on the storage medium.

◆ PSA_ERROR_INVALID_ARGUMENT

#define PSA_ERROR_INVALID_ARGUMENT   ((psa_status_t)-135)

One or more arguments other than create_flags are invalid.

◆ PSA_ERROR_INVALID_SIGNATURE

#define PSA_ERROR_INVALID_SIGNATURE   ((psa_status_t)-149)

The data associated with uid failed authentication.

◆ PSA_ERROR_NOT_PERMITTED

#define PSA_ERROR_NOT_PERMITTED   ((psa_status_t)-133)

An entry associated with the provided uid already exists and was created with PSA_STORAGE_FLAG_WRITE_ONCE.

◆ PSA_ERROR_NOT_SUPPORTED

#define PSA_ERROR_NOT_SUPPORTED   ((psa_status_t)-134)

The function is not supported or one or more of the flags provided in create_flags are not supported or not valid.

◆ PSA_ERROR_STORAGE_FAILURE

#define PSA_ERROR_STORAGE_FAILURE   ((psa_status_t)-146)

The physical storage has failed (fatal error).

◆ PSA_SUCCESS

#define PSA_SUCCESS   ((psa_status_t)0)

The operation completed successfully.

Typedef Documentation

◆ psa_status_t

Function return status.

Either PSA_SUCCESS or one of the defined PSA_ERROR_* values.