1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright(c) 2016-20 Intel Corporation.
9 #define ENCL_HEAP_SIZE_DEFAULT 4096
28 unsigned int nr_segments
;
29 struct encl_segment
*segment_tbl
;
31 struct sgx_sigstruct sigstruct
;
34 extern unsigned char sign_key
[];
35 extern unsigned char sign_key_end
[];
37 void encl_delete(struct encl
*ctx
);
38 bool encl_load(const char *path
, struct encl
*encl
, unsigned long heap_size
);
39 bool encl_measure(struct encl
*encl
);
40 bool encl_build(struct encl
*encl
);
41 uint64_t encl_get_entry(struct encl
*encl
, const char *symbol
);
43 int sgx_enter_enclave(void *rdi
, void *rsi
, long rdx
, u32 function
, void *r8
, void *r9
,
44 struct sgx_enclave_run
*run
);