error.h (1547B)
1 /* PSA status codes used by psasim. */ 2 3 /* 4 * Copyright The Mbed TLS Contributors 5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 6 */ 7 8 #ifndef PSA_ERROR_H 9 #define PSA_ERROR_H 10 #include <stdint.h> 11 typedef int32_t psa_status_t; 12 13 #define PSA_SUCCESS ((psa_status_t) 0) 14 15 #define PSA_ERROR_PROGRAMMER_ERROR ((psa_status_t) -129) 16 #define PSA_ERROR_CONNECTION_REFUSED ((psa_status_t) -130) 17 #define PSA_ERROR_CONNECTION_BUSY ((psa_status_t) -131) 18 #define PSA_ERROR_GENERIC_ERROR ((psa_status_t) -132) 19 #define PSA_ERROR_NOT_PERMITTED ((psa_status_t) -133) 20 #define PSA_ERROR_NOT_SUPPORTED ((psa_status_t) -134) 21 #define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t) -135) 22 #define PSA_ERROR_INVALID_HANDLE ((psa_status_t) -136) 23 #define PSA_ERROR_BAD_STATE ((psa_status_t) -137) 24 #define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t) -138) 25 #define PSA_ERROR_ALREADY_EXISTS ((psa_status_t) -139) 26 #define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t) -140) 27 #define PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t) -141) 28 #define PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t) -142) 29 #define PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t) -143) 30 #define PSA_ERROR_SERVICE_FAILURE ((psa_status_t) -144) 31 #define PSA_ERROR_COMMUNICATION_FAILURE ((psa_status_t) -145) 32 #define PSA_ERROR_STORAGE_FAILURE ((psa_status_t) -146) 33 #define PSA_ERROR_HARDWARE_FAILURE ((psa_status_t) -147) 34 #define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t) -149) 35 36 #endif