-
Notifications
You must be signed in to change notification settings - Fork 3
/
enclave.edl
30 lines (28 loc) · 1.06 KB
/
enclave.edl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
enclave {
from "Sealing/sealing.edl" import *;
trusted {
/**
* ECALLs (untrustedApp -> trustedEnclave)
* -> The call is made from the untrusted app
* -> The execution is done in the trusted enclave
* (function logic implemented in the Enclave folder)
* The functions defined in the trusted block
* are the functions that are implemented in the enclave
* They are the "trusted" functions, running in the SGX enclave
*/
public int generate_random_number(void);
public int addition(int a, int b);
};
untrusted {
/**
* OCALLs (trustedEnclave -> untrustedApp)
* -> The call is made from the trusted enclave
* -> The execution is done in the untrusted app
* (function logic implemented in the App folder)
* The functions defined in the untrusted block
* are the functions that are implemented in the untrusted
* application.
*/
void ocall_print([in, string]const char* str);
};
};