Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.51 KB

README.md

File metadata and controls

30 lines (26 loc) · 1.51 KB

func_call_v3.14_JAVA

This project is used when you need to encrypt the SGXindex

$ cd func_call_v3.14_JAVA  
$ make  
$ ./app input_file_path 128bits-key output_file_path

func_call_v3.14_without_Encrytion

The unencrypted version that will build the enclave.so enclave.signed.so libSGX.so which will read the matrix in /tmp/SGXindex
The operation is similar to the following encrypted version, except that the SGXindex should not be encrypted by func_call_v3.14_JAVA/app


func_call_v3.17_Encryption

The encrypted version that will build the enclave.so enclave.signed.so libSGX.so which will read the matrix in /tmp/SGXindex

  • encryption with AES ctr mode
  • the matrix path can be modified at func_call_v3.17_Encryption/Encalve/Encalve.cpp line 48
  • the decryption can be modified at func_call_v3.17_Encryption/Encalve/Encalve.cpp line 220
  • ensure the 128bits encryption key in func_call_v3.14_JAVA and the decryption key at func_call_v3.17_Encryption/Encalve/Encalve.cpp line 220 are the same

when using this version ensure that your matrix(SGXindex) is encrypted by func_call_v3.14_JAVA/app

$ cd func_call_v3.17_Encryption  
$ make  
$ cp libSGX.so ~/hadoop/lib/native/Linux-amd64-64  
$ cp enclave.signed.so ~/hadoop/lib/native/Linux-amd64-64  
$ cp enclave.so ~/hadoop/lib/native/Linux-amd64-64  

*NOTE: .so should be in the same dir on every nodes in the cluster.(scp)


to bulid these pojects see the README.txt