Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Create new WASM binary - sd for f64 #8

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ CXX ?= clang++

SRC_U = app/
SRC_T = enclave/
SRC_WASM= get-median-wasm/
SRC_WASM= get-sd-wasm/

# Compilation process, will call the appropriate makefiles.

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.

6 changes: 3 additions & 3 deletions app/src/main.rs
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ use sgx_types::*;
use sgx_urts::SgxEnclave;
use std::fs;

static WASM_FILE: &str = "get_median.wasm";
static WASM_FILE: &str = "get_sd.wasm";

static ENCLAVE_FILE: &str = "enclave.signed.so";

@@ -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;
}

@@ -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(
70 changes: 43 additions & 27 deletions enclave/Cargo.lock

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

Loading