Error codes#

Typedefs#

typedef int32_t

Function return status.

typedef int32_t

Function return status.

Macros#

#define
PSA_SUCCESS ((psa_status_t)0)

The action was completed successfully.

#define
PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)

An error occurred that does not correspond to any defined failure cause.

#define
PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)

The requested operation or a parameter is not supported by this implementation.

#define
PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)

The requested action is denied by a policy.

#define
PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138)

An output buffer is too small.

#define
PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)

Asking for an item that already exists.

#define
PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)

Asking for an item that doesn't exist.

#define
PSA_ERROR_BAD_STATE ((psa_status_t)-137)

The requested action cannot be performed in the current state.

#define
PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)

The parameters passed to the function are invalid.

#define
PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141)

There is not enough runtime memory.

#define
PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t)-142)

There is not enough persistent storage.

#define
PSA_ERROR_COMMUNICATION_FAILURE ((psa_status_t)-145)

There was a communication failure inside the implementation.

#define
PSA_ERROR_STORAGE_FAILURE ((psa_status_t)-146)

There was a storage failure that may have led to data loss.

#define
PSA_ERROR_HARDWARE_FAILURE ((psa_status_t)-147)

A hardware failure was detected.

#define
PSA_ERROR_CORRUPTION_DETECTED ((psa_status_t)-151)

A tampering attempt was detected.

#define
PSA_ERROR_INSUFFICIENT_ENTROPY ((psa_status_t)-148)

There is not enough entropy to generate random data needed for the requested action.

#define
PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)

The signature, MAC or hash is incorrect.

#define
PSA_ERROR_INVALID_PADDING ((psa_status_t)-150)

The decrypted padding is incorrect.

#define
PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t)-143)

Return this error when there's insufficient data when attempting to read from a resource.

#define
PSA_ERROR_INVALID_HANDLE ((psa_status_t)-136)

The key identifier is not valid.

#define
PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)

Stored data has been corrupted.

#define
PSA_ERROR_DATA_INVALID ((psa_status_t)-153)

Data read from storage is not valid for the implementation.

#define
PSA_ERROR_DELAYED ((psa_status_t)-154)

Requested operation has been delayed until the slot will be no longer in use.

#define
PSA_SUCCESS ((psa_status_t)0)

The action was completed successfully.

#define
PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)

An error occurred that does not correspond to any defined failure cause.

#define
PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)

The requested operation or a parameter is not supported by this implementation.

#define
PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)

The requested action is denied by a policy.

#define
PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138)

An output buffer is too small.

#define
PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)

Asking for an item that already exists.

#define
PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)

Asking for an item that doesn't exist.

#define
PSA_ERROR_BAD_STATE ((psa_status_t)-137)

The requested action cannot be performed in the current state.

#define
PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)

The parameters passed to the function are invalid.

#define
PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141)

There is not enough runtime memory.

#define
PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t)-142)

There is not enough persistent storage.

#define
PSA_ERROR_COMMUNICATION_FAILURE ((psa_status_t)-145)

There was a communication failure inside the implementation.

#define
PSA_ERROR_STORAGE_FAILURE ((psa_status_t)-146)

There was a storage failure that may have led to data loss.

#define
PSA_ERROR_HARDWARE_FAILURE ((psa_status_t)-147)

A hardware failure was detected.

#define
PSA_ERROR_CORRUPTION_DETECTED ((psa_status_t)-151)

A tampering attempt was detected.

#define
PSA_ERROR_INSUFFICIENT_ENTROPY ((psa_status_t)-148)

There is not enough entropy to generate random data needed for the requested action.

#define
PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)

The signature, MAC or hash is incorrect.

#define
PSA_ERROR_INVALID_PADDING ((psa_status_t)-150)

The decrypted padding is incorrect.

#define
PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t)-143)

Return this error when there's insufficient data when attempting to read from a resource.

#define
PSA_ERROR_INVALID_HANDLE ((psa_status_t)-136)

The key identifier is not valid.

#define
PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)

Stored data has been corrupted.

#define
PSA_ERROR_DATA_INVALID ((psa_status_t)-153)

Data read from storage is not valid for the implementation.

Typedef Documentation#

psa_status_t#

typedef int32_t psa_status_t

Function return status.

This is either PSA_SUCCESS (which is zero), indicating success, or a small negative value indicating that an error occurred. Errors are encoded as one of the PSA_ERROR_xxx values defined here.


psa_status_t#

typedef int32_t psa_status_t

Function return status.

This is either PSA_SUCCESS (which is zero), indicating success, or a small negative value indicating that an error occurred. Errors are encoded as one of the PSA_ERROR_xxx values defined here.