13 #ifndef _OE_SGX_SEAL_H
14 #define _OE_SGX_SEAL_H
16 #include <openenclave/bits/sgx/sgxtypes.h>
27 OE_SEAL_SETTING_SGX_ISVSVN,
28 OE_SEAL_SETTING_SGX_CET_ATTRIBUTES_MASK,
29 OE_SEAL_SETTING_SGX_CPUSVN,
30 OE_SEAL_SETTING_SGX_FLAGSMASK,
31 OE_SEAL_SETTING_SGX_XFRMMASK,
32 OE_SEAL_SETTING_SGX_MISCMASK,
33 OE_SEAL_SETTING_SGX_CONFIGSVN,
48 #define OE_SEAL_SET_SGX_KEYNAME(w) \
49 __OE_SEAL_SET_VALUE(OE_SEAL_SETTING_SGX_KEYNAME, w)
57 #define OE_SEAL_SET_SGX_ISVSVN(w) \
58 __OE_SEAL_SET_VALUE(OE_SEAL_SETTING_SGX_ISVSVN, w)
66 #define OE_SEAL_SET_SGX_CET_ATTRIBUTES_MASK(b) \
67 __OE_SEAL_SET_VALUE(OE_SEAL_SETTING_SGX_CET_ATTRIBUTES_MASK, b)
76 #define OE_SEAL_SET_SGX_CPUSVN(p) \
77 __OE_SEAL_SET_POINTER(OE_SEAL_SETTING_SGX_CPUSVN, p, 16)
86 #define OE_SEAL_SET_SGX_FLAGSMASK(q) \
87 __OE_SEAL_SET_VALUE(OE_SEAL_SETTING_SGX_FLAGSMASK, q)
96 #define OE_SEAL_SET_SGX_XFRMMASK(q) \
97 __OE_SEAL_SET_VALUE(OE_SEAL_SETTING_SGX_XFRMMASK, q)
105 #define OE_SEAL_SET_SGX_MISCMASK(d) \
106 __OE_SEAL_SET_VALUE(OE_SEAL_SETTING_SGX_MISCMASK, d)
114 #define OE_SEAL_SET_SGX_CONFIGSVN(w) \
115 __OE_SEAL_SET_VALUE(OE_SEAL_SETTING_SGX_CPUSVN, w)