Enclave_minimal.edl 689 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. enclave {
  6. from "sgx_tstdc.edl" import *;
  7. trusted {
  8. /* define ECALLs here. */
  9. public void ecall_handle_command(unsigned cmd,
  10. [in, out, size=cmd_buf_size]uint8_t *cmd_buf,
  11. unsigned cmd_buf_size);
  12. public void ecall_iwasm_main([user_check]uint8_t *wasm_file_buf,
  13. uint32_t wasm_file_size);
  14. };
  15. untrusted {
  16. /* define OCALLs here. */
  17. int ocall_print([in, string]const char* str);
  18. };
  19. };