OPTIGA™ Trust M
Host Library Documentation
optiga_lib_return_codes.h
Go to the documentation of this file.
1
46
#ifndef _OPTIGA_LIB_RETURN_CODES_H_
47
#define _OPTIGA_LIB_RETURN_CODES_H_
48
49
#ifdef __cplusplus
50
extern
"C"
{
51
#endif
52
54
#define OPTIGA_LIB_SUCCESS (0x0000)
55
#define OPTIGA_LIB_BUSY (0x0001)
57
61
#define OPTIGA_DEVICE_ERROR (0x8000)
63
67
#define OPTIGA_COMMS_SUCCESS (0x0000)
69
#define OPTIGA_COMMS_BUSY (0x0001)
71
#define OPTIGA_COMMS_ERROR (0x0102)
73
#define OPTIGA_COMMS_ERROR_INVALID_INPUT (0x0103)
75
#define OPTIGA_COMMS_ERROR_MEMORY_INSUFFICIENT (0x0104)
77
#define OPTIGA_COMMS_ERROR_STACK_MEMORY (0x0105)
79
#define OPTIGA_COMMS_ERROR_FATAL (0x0106)
81
#define OPTIGA_COMMS_ERROR_HANDSHAKE (0x0107)
83
#define OPTIGA_COMMS_ERROR_SESSION (0x0108)
85
89
#define OPTIGA_CMD_SUCCESS (0x0000)
91
#define OPTIGA_CMD_BUSY (0x0001)
93
#define OPTIGA_CMD_ERROR (0x0202)
95
#define OPTIGA_CMD_ERROR_INVALID_INPUT (0x0203)
97
#define OPTIGA_CMD_ERROR_MEMORY_INSUFFICIENT (0x0204)
99
103
#define OPTIGA_UTIL_SUCCESS (0x0000)
105
#define OPTIGA_UTIL_BUSY (0x0001)
107
#define OPTIGA_UTIL_ERROR (0x0302)
109
#define OPTIGA_UTIL_ERROR_INVALID_INPUT (0x0303)
111
#define OPTIGA_UTIL_ERROR_MEMORY_INSUFFICIENT (0x0304)
113
#define OPTIGA_UTIL_ERROR_INSTANCE_IN_USE (0x0305)
115
119
#define OPTIGA_CRYPT_SUCCESS (0x0000)
121
#define OPTIGA_CRYPT_BUSY (0x0001)
123
#define OPTIGA_CRYPT_ERROR (0x0402)
125
#define OPTIGA_CRYPT_ERROR_INVALID_INPUT (0x0403)
127
#define OPTIGA_CRYPT_ERROR_MEMORY_INSUFFICIENT (0x0404)
129
#define OPTIGA_CRYPT_ERROR_INSTANCE_IN_USE (0x0405)
131
132
#ifdef __cplusplus
133
}
134
#endif
135
136
#endif
/*_OPTIGA_LIB_RETURN_CODES_H_ */
137
Copyright © 2021 Infineon Technologies AG