Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
bb8d4480
Commit
bb8d4480
authored
Jan 19, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final_load.cc first version
parent
86165e20
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
5 deletions
+15
-5
final_load.cc
debug/final_load.cc
+13
-2
loadtemp.cc
debug/loadtemp.cc
+0
-1
Makefrag
util/Makefrag
+1
-1
constants.cc
util/constants.cc
+1
-1
constants.hh
util/constants.hh
+0
-0
No files found.
debug/
loadstep
.cc
→
debug/
final_load
.cc
View file @
bb8d4480
...
@@ -191,9 +191,20 @@ void local_wrapper(const Item &i, const FieldMeta &fm, Analysis &a,
...
@@ -191,9 +191,20 @@ void local_wrapper(const Item &i, const FieldMeta &fm, Analysis &a,
//为什么这里不是push item??
//为什么这里不是push item??
// append_list->push_back(&(const_cast<Item&>(i)));
// append_list->push_back(&(const_cast<Item&>(i)));
//do not use the plain strategy
//do not use the plain strategy
std
::
vector
<
Item
*>
l
;
std
::
vector
<
Item
*>
l
;
my_typical_rewrite_insert_type
(
i
,
fm
,
a
,
&
l
);
const
uint64_t
salt
=
fm
.
getHasSalt
()
?
randomValue
()
:
0
;
uint64_t
IV
=
salt
;
for
(
auto
it
:
fm
.
orderedOnionMetas
())
{
const
onion
o
=
it
.
first
->
getValue
();
OnionMeta
*
const
om
=
it
.
second
;
l
.
push_back
(
my_encrypt_item_layers
(
i
,
o
,
*
om
,
a
,
IV
));
}
if
(
fm
.
getHasSalt
())
{
l
.
push_back
(
new
Item_int
(
static_cast
<
ulonglong
>
(
salt
)));
}
for
(
auto
it
:
l
)
{
for
(
auto
it
:
l
)
{
append_list
->
push_back
(
it
);
append_list
->
push_back
(
it
);
}
}
...
...
debug/loadtemp.cc
View file @
bb8d4480
...
@@ -223,7 +223,6 @@ main(int argc, char* argv[]){
...
@@ -223,7 +223,6 @@ main(int argc, char* argv[]){
/*load and decrypt*/
/*load and decrypt*/
ResType
res
=
load_files
(
db
,
table
);
ResType
res
=
load_files
(
db
,
table
);
/*transform*/
/*transform*/
rawMySQLReturnValue
str
;
rawMySQLReturnValue
str
;
transform_to_rawMySQLReturnValue
(
str
,
res
);
transform_to_rawMySQLReturnValue
(
str
,
res
);
...
...
util/Makefrag
View file @
bb8d4480
OBJDIRS += util
OBJDIRS += util
UTILSRC := onions.cc cryptdb_log.cc ctr.cc util.cc version.cc
et
.cc
UTILSRC := onions.cc cryptdb_log.cc ctr.cc util.cc version.cc
constants
.cc
all: $(OBJDIR)/libedbutil.so $(OBJDIR)/libedbutil.a
all: $(OBJDIR)/libedbutil.so $(OBJDIR)/libedbutil.a
...
...
util/
et
.cc
→
util/
constants
.cc
View file @
bb8d4480
#include "util/
et
.hh"
#include "util/
constants
.hh"
const
char
*
cryptdb_dir
=
getenv
(
"CRYPTDB_DIR"
);
const
char
*
cryptdb_dir
=
getenv
(
"CRYPTDB_DIR"
);
//assert(cryptdb_dir!=NULL);
//assert(cryptdb_dir!=NULL);
util/
et
.hh
→
util/
constants
.hh
View file @
bb8d4480
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment