Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrElfNoPie = fmt.Errorf("%w: ELF image is not a PIE or shared object", ErrOEInvalidImg)
ErrElfNoPie is an Open Enclave error where the ELF image is not a PIE or shared object. This likely occures if a binary is run which was not built with ego-go.
var ErrEnclIniFailInvalidMeasurement = fmt.Errorf("%w: enclave_initialize failed: ENCLAVE_INVALID_MEASUREMENT", ErrOEPlatform)
ErrEnclIniFailInvalidMeasurement is an Open Enclave error where enclave_initialize fails with error code 0x5. This likely occurs if the signature of the binary is invalid and the binary needs to be resigned.
var ErrEnclIniFailUnexpected = fmt.Errorf("%w: enclave_initialize failed: ENCLAVE_UNEXPECTED", ErrOEPlatform)
ErrEnclIniFailUnexpected is an Open Enclave error where enclave_initialize fails with error code 0x1001. On non-FLC systems this occurs if the libsgx-launch package is not installed.
var ErrExtUnknown = errors.New("unknown external error")
ErrExtUnknown is a unknown error from an external tool.
var ErrLoadDataFailUnexpected = fmt.Errorf("%w: enclave_load_data failed: ENCLAVE_UNEXPECTED", ErrOEPlatform)
ErrLoadDataFailUnexpected is an Open Enclave error where enclave_load_data fails with error code 0x1001.
var ErrOECrypto = errors.New("OE_CRYPTO_ERROR")
ErrOECrypto is a representation of Open Enclaves OE_CRYPTO_ERROR return code.
var ErrOEFailure = errors.New("OE_FAILURE")
ErrOEFailure is a representation of Open Enclaves OE_FAILURE return code.
var ErrOEInvalidImg = errors.New("OE_INVALID_IMAGE")
ErrOEInvalidImg is a representation of Open Enclaves OE_INVALID_IMAGE return code.
var ErrOEPlatform = errors.New("OE_PLATFORM_ERROR")
ErrOEPlatform is a representation of Open Enclaves OE_PLATFORM_ERROR return code.
var ErrSGXOpenFail = fmt.Errorf("%w: Failed to open Intel SGX device", ErrOEPlatform)
ErrSGXOpenFail is an Open Enclave error where OE failes to open the Intel SGX device. This likely occures if a system does not support SGX or the required module is missing.
var ErrValidAttr0 = fmt.Errorf("%w: oe_sgx_is_valid_attributes failed: attributes = 0", ErrOEFailure)
ErrValidAttr0 is an Open Enclave error where oe_sgx_is_valid_attributes fails. This likely occures if an unsigned binary is run.
Functions ¶
func RunEnclave ¶
func RunEnclave(filename string, args []string, egoHostFilename string, egoEnclaveFilename string, runner Runner) (int, error)
RunEnclave launches an user EGo enclave.
Types ¶
type OsRunner ¶
type OsRunner struct{}
OsRunner wraps Cmd objects from the real host system, not an unit test environment.
func (OsRunner) CombinedOutput ¶
CombinedOutput for OsRunner redirects to cmd.CombinedOutput()