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

convert ORAM sealed file #25

Open
wants to merge 12 commits into
base: feature/pathoram
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ test/project_path.h
test/integrate/__pycache__/
test/integrate/js/
.vscode/
hash_hex/
build_PreRelease/
build_debug/
hash_hex/
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ create_signed_so() {
["person_first_match"]="example/personlist/first_match/enclave/enclave.config.xml"
["person_first_match_multi"]="example/multi_personlist/first_match/enclave/enclave.config.xml"
["person_first_match_multi_offchain"]="example/multi_personlist/first_match/enclave_for_offchain/enclave.config.xml"
["convert_sealed_file"]="example/convert/enclave/enclave.config.xml"
)

for filename in ${!enclave_libs[@]}; do
Expand Down
124 changes: 0 additions & 124 deletions doc/Optimized Path ORAM introduction.md

This file was deleted.

2 changes: 2 additions & 0 deletions example/convert/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_subdirectory(enclave)
add_subdirectory(enclave2)
7 changes: 7 additions & 0 deletions example/convert/common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once
#include "common_t.h"
#include "ypc/core/blockfile.h"
#include "ypc/core/byte.h"
#include "ypc/corecommon/package.h"
typedef ypc::blockfile<0x82, 1024 * 1024, 256 * 64 * 1024> file_t;

36 changes: 36 additions & 0 deletions example/convert/common_t.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#pragma once
#include <ff/net/middleware/ntpackage.h>
#include <ff/util/ntobject.h>

define_nt(RYXXBZ, std::string, "RYXXBZ");
define_nt(XM, std::string, "XM");
define_nt(CYM, std::string, "CYM");
define_nt(XBDM, std::string, "XBDM");
define_nt(FWXXBZ, std::string, "FWXXBZ");
define_nt(XP, std::string, "XP");
define_nt(DWMC, std::string, "DWMC");
define_nt(ZJHM, std::string, "ZJHM");
define_nt(GJDM, std::string, "GJDM");
define_nt(MZDM, std::string, "MZDM");
define_nt(JGSSXDM, std::string, "JGSSXDM");
define_nt(HKXZFLYDM, std::string, "HKXZFLYDM");
define_nt(HLXDM, std::string, "HLXDM");
define_nt(HJDZ_XZQHDM, std::string, "HJDZXZQHDM");
define_nt(SJJZD_XZQHDM, std::string, "SJJZDXZQHDM");
define_nt(SJJZD_QHNXXDZ, std::string, "SJJZDQHNXXDZ");
define_nt(XLDM, std::string, "XLDM");
define_nt(TSSFDM, std::string, "TSSFDM");
define_nt(CSQR, std::string, "CSQR");
define_nt(LXDH, std::string, "LXDH");
define_nt(HYZKDM, std::string, "HYZKDM");
define_nt(DJR_XM, std::string, "DJR_XM");
define_nt(DJR_GMSFZHM, std::string, "DJRGMSFZHM");
define_nt(DJR_LXDH, std::string, "DJRLXDH");
define_nt(GXSJ, std::string, "GXSJ");
define_nt(SJZT, std::string, "SJZT");

typedef ff::util::ntobject<
RYXXBZ, XM, CYM, XBDM, FWXXBZ, XP, DWMC, ZJHM, GJDM, MZDM, JGSSXDM,
HKXZFLYDM, HLXDM, HJDZ_XZQHDM, SJJZD_XZQHDM, SJJZD_QHNXXDZ, XLDM, TSSFDM,
CSQR, LXDH, HYZKDM, DJR_XM, DJR_GMSFZHM, DJR_LXDH, GXSJ, SJZT>
row_t;
13 changes: 13 additions & 0 deletions example/convert/enclave/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set(T_SRCS eparser.cpp)

add_ypc_applet(convert_sealed_file
CRYPTO stdeth
SRCS ${T_SRCS})

if(SGX_MODE STREQUAL "Debug")
enclave_sign(convert_sealed_file KEY enclave_private.pem
CONFIG enclave.config.debug.xml)
else()
enclave_sign(convert_sealed_file KEY enclave_private.pem
CONFIG enclave.config.xml)
endif()
Loading