Skip to content

Commit

Permalink
refactor: Increase enclave memory; allocate arbitrary memory to WASM;…
Browse files Browse the repository at this point in the history
… import data
  • Loading branch information
Bingle committed Aug 29, 2022
1 parent 72774ea commit 7f3ae5f
Show file tree
Hide file tree
Showing 11 changed files with 434 additions and 88 deletions.
58 changes: 29 additions & 29 deletions app/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
retval: *mut sgx_status_t,
binary: *const u8,
binary_len: usize,
result_out: *mut i32,
result_out: *mut f64,
) -> sgx_status_t;
}

Expand Down Expand Up @@ -72,7 +72,7 @@ fn main() {

let binary = fs::read(WASM_FILE).unwrap();

let mut result_out = 0i32;
let mut result_out = 0f64;

let result = unsafe {
exec_wasm_test(
Expand Down
94 changes: 67 additions & 27 deletions enclave/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7f3ae5f

Please sign in to comment.