-
Notifications
You must be signed in to change notification settings - Fork 0
How to run the M AI CryptograpgicProtocols Projekt
Our project deals with the execution of a SQLite database in an SGX enclave. Our work ties in with a basic implementation of the GitHub user yerzhan7, who realized the general execution of the SQLite library in his SGX_SQLite repository.
Our project deals with the use of the secure file API for SGX enclaves, which allows to persist and encrypt enclave data on disk.
To successfully complete the following instructions, it is necessary that the following instructions have already been completed:
- How to install Intel SGX Driver on Ubuntu
- How to install Intel SGX SDK on Ubuntu
- How to Setup the Eclipse IDE (with SGX Plugin)
In our project, the development machine was run with a user named "sgx". This may need to be taken into account when running on your own computer to adjust path specifications.
The project was developed using a Git repository. This repository can be cloned into the home directory of the current user by executing the following commands:
cd ~
git clone "https://github.com/MatsKockmeyer/M-AI-CryptographicProtocols.git"
cd M-AI-CryptographicProtocols
Do not forget to initialize the submodules of the repository. This can be done with the following commands:
git submodule init
git submodule update
The project includes a fully configured workspace for the Eclipse IDE. This can be found in the directory M-AI-CryptographicProtocols/eclipse-workspace
. When running the Eclipse IDE, the startup process asks for the location of the workspace. The path just mentioned must be specified here (in our case /home/sgx/M-AI-CryptographicProtocols/eclipse-workspace
).
Since the Eclipse version may differ from the Eclipse version we use, a corresponding warning message appears and must be acknowledged.
As the next picture shows, the project has to be cleaned up and recreated. You can use the red bordered entries of the context menu for this. Make a right click on the project name and select the corresponding items, first "Clean Project" then "Build Project".
After running the build process we have to Rebuild C/C++ Index
. This step is irrelevant for the compiler. It is only needed to fix error messages for unknown function names in the IDE.
Please check if the debugger configuration is correct. First, select Debug in (1). Then click on the gear symbol (2) and select "Debugger" from the tabs. Now please check if the information in (3) match the information in your configuration or accept them.
Note: Make sure that the path specification to the Intel SGX SDK is correct.
Now the project can be executed in the corresponding mode. For debugging purposes, the mode must be changed from Run
to Debug
(see following image).
๐ ๏ธ How to install Intel SGX Driver on Ubuntu
๐ ๏ธ How to install Intel SGX SDK on Ubuntu
๐ฏ Validate that your Intel SGX Setup is working correctly
๐ป How to setup the Eclipse IDE (with SGX Plugin)
โญ How to setup the first SGX Project
๐ How to analyse an SGX Enclave? (Installation and Usage)
๐ Project overview
๐ Brief introduction: SQLite's Virtual File System