Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
24
#ifndef PSA_CRYPTO_PSA_ERROR_H
25
#define PSA_CRYPTO_PSA_ERROR_H
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
#include <stdint.h>
32
40
#ifndef PSA_SUCCESS
41
typedef
int32_t
psa_status_t
;
42
#endif
43
47
#define PSA_SUCCESS ((psa_status_t)0)
48
52
#define PSA_ERROR_PROGRAMMER_ERROR ((psa_status_t)-129)
53
57
#define PSA_ERROR_CONNECTION_REFUSED ((psa_status_t)-130)
58
62
#define PSA_ERROR_CONNECTION_BUSY ((psa_status_t)-131)
63
68
#define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)
69
73
#define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)
74
78
#define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)
79
83
#define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)
84
90
#define PSA_ERROR_INVALID_HANDLE ((psa_status_t)-136)
91
100
#define PSA_ERROR_BAD_STATE ((psa_status_t)-137)
101
108
#define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138)
109
113
#define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)
114
118
#define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)
119
123
#define PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141)
124
128
#define PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t)-142)
129
133
#define PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t)-143)
134
138
#define PSA_ERROR_SERVICE_FAILURE ((psa_status_t)-144)
139
144
#define PSA_ERROR_COMMUNICATION_FAILURE ((psa_status_t)-145)
145
153
#define PSA_ERROR_STORAGE_FAILURE ((psa_status_t)-146)
154
158
#define PSA_ERROR_HARDWARE_FAILURE ((psa_status_t)-147)
159
164
#define PSA_ERROR_INSUFFICIENT_ENTROPY ((psa_status_t)-148)
165
169
#define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)
170
174
#define PSA_ERROR_INVALID_PADDING ((psa_status_t)-150)
175
185
#define PSA_ERROR_CORRUPTION_DETECTED ((psa_status_t)-151)
186
194
#define PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)
195
200
#define PSA_ERROR_DATA_INVALID ((psa_status_t)-153)
201
209
#define PSA_OPERATION_INCOMPLETE ((psa_status_t)-248)
210
211
#ifdef __cplusplus
212
}
213
#endif
214
215
#endif
/* PSA_CRYPTO_PSA_ERROR_H */
psa_status_t
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition
error.h:41
Generated on Thu Nov 21 2024 09:55:58 by
1.9.8