@@ -131,32 +131,32 @@ typedef enum {
131
131
} enclu_cmd_t ;
132
132
133
133
// from 5.1.3
134
- #define ERR_SGX_NOERROR (0x00 )
135
- #define ERR_SGX_INVALID_SIG_STRUCT (0x01 ) // EINIT
136
- #define ERR_SGX_INVALID_ATTRIBUTE (0x02 ) // EINIT, EGETKEY
137
- #define ERR_SGX_BLSTATE (0x03 ) // EBLOCK
138
- #define ERR_SGX_BLKSTATE (0x03 ) // EBLOCK
139
- #define ERR_SGX_INVALID_MEASUREMENT (0x04 ) // EINIT
140
- #define ERR_SGX_NOTBLOCKABLE (0x05 ) // EBLOCK
141
- #define ERR_SGX_PG_INVLD (0x06 ) // EBLOCK
142
- #define ERR_SGX_LOCKFAIL (0x07 ) // EBLOCK
143
- #define ERR_SGX_INVALID_SIGNATURE (0x08 ) // EINIT
144
- #define ERR_SGX_MAC_COMPARE_FAIL (0x09 ) // ELDB, ELDU
145
- #define ERR_SGX_PAGE_NOT_BLOCKED (0x10 ) // EWB
146
- #define ERR_SGX_NOT_TRACKED (0x11 ) // EWB
147
- #define ERR_SGX_VA_SLOT_OCCUPIED (0x12 ) // EWB
148
- #define ERR_SGX_CHILD_PRESENT (0x13 ) // EWB, EREMOVE
149
- #define ERR_SGX_ENCLAVE_ACT (0x14 ) // EREMOVE
150
- #define ERR_SGX_ENTRYEPOCH_LOCKED (0x15 ) // EBLOCK
151
- #define ERR_SGX_INVALID_EINIT_TOKEN (0x16 ) // EINIT
152
- #define ERR_SGX_PREV_TRK_INCMPL (0x17 ) // ETRACK
153
- #define ERR_SGX_PG_IS_SECS (0x18 ) // EBLOCK
154
- #define ERR_SGX_PAGE_ATTRIBUTES_MISMATCH (0x19 ) // EACCEPT, EACCEPTCOPY
155
- #define ERR_SGX_PAGE_NOT_MODIFIABLE (0x20 ) // EMODPR, EMODT
156
- #define ERR_SGX_INVALID_CPUSVN (0x32 ) // EINIT, EGETKEY
157
- #define ERR_SGX_INVALID_ISVSVN (0x64 ) // EGETKEY
158
- #define ERR_SGX_UNMASKED_EVENT (0x128 ) // EINIT
159
- #define ERR_SGX_INVALID_KEYNAME (0x256 ) // EGETKEY
134
+ #define ERR_SGX_NOERROR (0 )
135
+ #define ERR_SGX_INVALID_SIG_STRUCT (1 ) // EINIT
136
+ #define ERR_SGX_INVALID_ATTRIBUTE (2 ) // EINIT, EGETKEY
137
+ #define ERR_SGX_BLSTATE (3 ) // EBLOCK
138
+ #define ERR_SGX_BLKSTATE (3 ) // EBLOCK
139
+ #define ERR_SGX_INVALID_MEASUREMENT (4 ) // EINIT
140
+ #define ERR_SGX_NOTBLOCKABLE (5 ) // EBLOCK
141
+ #define ERR_SGX_PG_INVLD (6 ) // EBLOCK
142
+ #define ERR_SGX_LOCKFAIL (7 ) // EBLOCK
143
+ #define ERR_SGX_INVALID_SIGNATURE (8 ) // EINIT
144
+ #define ERR_SGX_MAC_COMPARE_FAIL (9 ) // ELDB, ELDU
145
+ #define ERR_SGX_PAGE_NOT_BLOCKED (10 ) // EWB
146
+ #define ERR_SGX_NOT_TRACKED (11 ) // EWB
147
+ #define ERR_SGX_VA_SLOT_OCCUPIED (12 ) // EWB
148
+ #define ERR_SGX_CHILD_PRESENT (13 ) // EWB, EREMOVE
149
+ #define ERR_SGX_ENCLAVE_ACT (14 ) // EREMOVE
150
+ #define ERR_SGX_ENTRYEPOCH_LOCKED (15 ) // EBLOCK
151
+ #define ERR_SGX_INVALID_EINIT_TOKEN (16 ) // EINIT
152
+ #define ERR_SGX_PREV_TRK_INCMPL (17 ) // ETRACK
153
+ #define ERR_SGX_PG_IS_SECS (18 ) // EBLOCK
154
+ #define ERR_SGX_PAGE_ATTRIBUTES_MISMATCH (19 ) // EACCEPT, EACCEPTCOPY
155
+ #define ERR_SGX_PAGE_NOT_MODIFIABLE (20 ) // EMODPR, EMODT
156
+ #define ERR_SGX_INVALID_CPUSVN (32 ) // EINIT, EGETKEY
157
+ #define ERR_SGX_INVALID_ISVSVN (64 ) // EGETKEY
158
+ #define ERR_SGX_UNMASKED_EVENT (128 ) // EINIT
159
+ #define ERR_SGX_INVALID_KEYNAME (256 ) // EGETKEY
160
160
161
161
//====--------------------------------------------------------------
162
162
/// SGX ENCLS related Structures
0 commit comments