10 #ifndef _OE_BITS_TYPES_H 11 #define _OE_BITS_TYPES_H 22 typedef unsigned long size_t;
23 typedef signed char int8_t;
24 typedef unsigned char uint8_t;
25 typedef short int16_t;
26 typedef unsigned short uint16_t;
28 typedef unsigned int uint32_t;
30 typedef unsigned long uint64_t;
31 typedef unsigned long uintptr_t;
32 typedef long ptrdiff_t;
33 typedef long intptr_t;
35 typedef long suseconds_t;
37 #elif defined(_MSC_VER) 38 typedef long long ssize_t;
39 typedef unsigned long long size_t;
40 typedef signed char int8_t;
41 typedef unsigned char uint8_t;
42 typedef short int16_t;
43 typedef unsigned short uint16_t;
45 typedef unsigned int uint32_t;
46 typedef long long int64_t;
47 typedef unsigned long long uint64_t;
48 typedef unsigned long long uintptr_t;
49 typedef long long ptrdiff_t;
50 typedef long long intptr_t;
51 typedef long long time_t;
52 typedef long long suseconds_t;
54 #error "unknown compiler - please adapt basic types" 64 #define OE_SCHAR_MIN (-128) 65 #define OE_SCHAR_MAX 127 66 #define OE_UCHAR_MAX 255 67 #define OE_CHAR_MIN (-128) 68 #define OE_CHAR_MAX 127 70 #define OE_SHRT_MIN (-1 - 0x7fff) 71 #define OE_SHRT_MAX 0x7fff 72 #define OE_USHRT_MAX 0xffff 73 #define OE_INT_MIN (-1 - 0x7fffffff) 74 #define OE_INT_MAX 0x7fffffff 75 #define OE_UINT_MAX 0xffffffffU 78 #define OE_LONG_MAX 0x7fffffffL 80 #define OE_LONG_MAX 0x7fffffffffffffffL 83 #define OE_LONG_MIN (-OE_LONG_MAX - 1) 84 #define OE_ULONG_MAX (2UL * OE_LONG_MAX + 1) 85 #define OE_LLONG_MAX 0x7fffffffffffffffLL 86 #define OE_LLONG_MIN (-OE_LLONG_MAX - 1) 87 #define OE_ULLONG_MAX (2ULL * OE_LLONG_MAX + 1) 89 #define OE_INT8_MIN (-1 - 0x7f) 90 #define OE_INT8_MAX (0x7f) 91 #define OE_UINT8_MAX (0xff) 92 #define OE_INT16_MIN (-1 - 0x7fff) 93 #define OE_INT16_MAX (0x7fff) 94 #define OE_UINT16_MAX (0xffff) 95 #define OE_INT32_MIN (-1 - 0x7fffffff) 96 #define OE_INT32_MAX (0x7fffffff) 97 #define OE_UINT32_MAX (0xffffffffu) 98 #define OE_INT64_MIN (-1 - 0x7fffffffffffffff) 99 #define OE_INT64_MAX (0x7fffffffffffffff) 100 #define OE_UINT64_MAX (0xffffffffffffffffu) 101 #define OE_SIZE_MAX OE_UINT64_MAX 102 #define OE_SSIZE_MAX OE_INT64_MAX enum _oe_seal_policy oe_seal_policy_t
This enumeration type defines the policy used to derive a seal key.
Unused.
Definition: types.h:174
enum _oe_asymmetric_key_format oe_asymmetric_key_format_t
This enumeration defines the format of the asymmetric key.
Unused.
Definition: types.h:157
enum _oe_enclave_type oe_enclave_type_t
This enumeration defines values for the type parameter passed to oe_create_enclave().
_oe_enclave_type
This enumeration defines values for the type parameter passed to oe_create_enclave().
Definition: types.h:111
Unused.
Definition: types.h:127
void * user_data
Optional user data to add to the key derivation.
Definition: types.h:213
struct _oe_asymmetric_key_params oe_asymmetric_key_params_t
This struct contains the parameters for asymmetric key derivation.
_oe_seal_policy
This enumeration type defines the policy used to derive a seal key.
Definition: types.h:140
This struct contains the parameters for asymmetric key derivation.
Definition: types.h:198
_oe_asymmetric_key_type
This enumeration defines the type of a asymmetric key.
Definition: types.h:164
enum _oe_asymmetric_key_type oe_asymmetric_key_type_t
This enumeration defines the type of a asymmetric key.
Key is derived from the signer of the enclave.
Definition: types.h:153
OE_ENCLAVE_TYPE_SGX will force the platform to use SGX, but any platform other than x64 will not supp...
Definition: types.h:123
_oe_asymmetric_key_format
This enumeration defines the format of the asymmetric key.
Definition: types.h:181
OE_ENCLAVE_TYPE_AUTO will pick the type based on the target platform that is being built...
Definition: types.h:118
size_t user_data_size
The size of user_data.
Definition: types.h:218
A secp256r1/NIST P-256 elliptic curve key.
Definition: types.h:169
Key is derived from a measurement of the enclave.
Definition: types.h:147
Unused.
Definition: types.h:191
oe_asymmetric_key_format_t format
The exported format of the key.
Definition: types.h:208
The PEM format.
Definition: types.h:186
oe_asymmetric_key_type_t type
The type of asymmetric key.
Definition: types.h:203
struct _oe_enclave oe_enclave_t
This is an opaque handle to an enclave returned by oe_create_enclave().
Definition: types.h:134