Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 TU Dresden
3 * SPDX-FileCopyrightText: 2021 HAW Hamburg
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include <stdint.h>
28
36#ifndef PSA_SUCCESS
37typedef int32_t psa_status_t;
38#endif
39
43#define PSA_SUCCESS ((psa_status_t)0)
44
48#define PSA_ERROR_PROGRAMMER_ERROR ((psa_status_t)-129)
49
53#define PSA_ERROR_CONNECTION_REFUSED ((psa_status_t)-130)
54
58#define PSA_ERROR_CONNECTION_BUSY ((psa_status_t)-131)
59
64#define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)
65
69#define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)
70
74#define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)
75
79#define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)
80
86#define PSA_ERROR_INVALID_HANDLE ((psa_status_t)-136)
87
96#define PSA_ERROR_BAD_STATE ((psa_status_t)-137)
97
104#define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138)
105
109#define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)
110
114#define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)
115
119#define PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141)
120
124#define PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t)-142)
125
129#define PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t)-143)
130
134#define PSA_ERROR_SERVICE_FAILURE ((psa_status_t)-144)
135
140#define PSA_ERROR_COMMUNICATION_FAILURE ((psa_status_t)-145)
141
149#define PSA_ERROR_STORAGE_FAILURE ((psa_status_t)-146)
150
154#define PSA_ERROR_HARDWARE_FAILURE ((psa_status_t)-147)
155
160#define PSA_ERROR_INSUFFICIENT_ENTROPY ((psa_status_t)-148)
161
165#define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)
166
170#define PSA_ERROR_INVALID_PADDING ((psa_status_t)-150)
171
181#define PSA_ERROR_CORRUPTION_DETECTED ((psa_status_t)-151)
182
190#define PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)
191
196#define PSA_ERROR_DATA_INVALID ((psa_status_t)-153)
197
205#define PSA_OPERATION_INCOMPLETE ((psa_status_t)-248)
206
207#ifdef __cplusplus
208}
209#endif
210
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition error.h:37