Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 TU Dresden
3 * Copyright (C) 2021 HAW Hamburg
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
10#pragma once
11
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <stdint.h>
31
39#ifndef PSA_SUCCESS
40typedef int32_t psa_status_t;
41#endif
42
46#define PSA_SUCCESS ((psa_status_t)0)
47
51#define PSA_ERROR_PROGRAMMER_ERROR ((psa_status_t)-129)
52
56#define PSA_ERROR_CONNECTION_REFUSED ((psa_status_t)-130)
57
61#define PSA_ERROR_CONNECTION_BUSY ((psa_status_t)-131)
62
67#define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)
68
72#define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)
73
77#define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)
78
82#define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)
83
89#define PSA_ERROR_INVALID_HANDLE ((psa_status_t)-136)
90
99#define PSA_ERROR_BAD_STATE ((psa_status_t)-137)
100
107#define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138)
108
112#define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)
113
117#define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)
118
122#define PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141)
123
127#define PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t)-142)
128
132#define PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t)-143)
133
137#define PSA_ERROR_SERVICE_FAILURE ((psa_status_t)-144)
138
143#define PSA_ERROR_COMMUNICATION_FAILURE ((psa_status_t)-145)
144
152#define PSA_ERROR_STORAGE_FAILURE ((psa_status_t)-146)
153
157#define PSA_ERROR_HARDWARE_FAILURE ((psa_status_t)-147)
158
163#define PSA_ERROR_INSUFFICIENT_ENTROPY ((psa_status_t)-148)
164
168#define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)
169
173#define PSA_ERROR_INVALID_PADDING ((psa_status_t)-150)
174
184#define PSA_ERROR_CORRUPTION_DETECTED ((psa_status_t)-151)
185
193#define PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)
194
199#define PSA_ERROR_DATA_INVALID ((psa_status_t)-153)
200
208#define PSA_OPERATION_INCOMPLETE ((psa_status_t)-248)
209
210#ifdef __cplusplus
211}
212#endif
213
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition error.h:40