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
b2507e02
Commit
b2507e02
authored
Jan 26, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
6fd756df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
final_load.cc
debug/final_load.cc
+15
-1
No files found.
debug/final_load.cc
View file @
b2507e02
...
...
@@ -284,7 +284,11 @@ List<Item> * processRow(const std::vector<Item *> &row,
int
main
(
int
argc
,
char
*
argv
[]){
timer
t_init
;
init
();
glog
<<
"init: "
<<
std
::
to_string
(
t_init
.
lap
()
/
1000000u
)
<<
"
\n
"
;
create_embedded_thd
(
0
);
std
::
string
db
=
"tdb"
,
table
=
"student"
;
std
::
string
ip
=
"localhost"
;
...
...
@@ -297,10 +301,18 @@ main(int argc, char* argv[]){
schema
.
get
();
const
std
::
unique_ptr
<
AES_KEY
>
&
TK
=
std
::
unique_ptr
<
AES_KEY
>
(
getKey
(
std
::
string
(
"113341234"
)));
Analysis
analysis
(
db
,
*
schema
,
TK
,
SECURITY_RATING
::
SENSITIVE
);
glog
<<
"loadSchema: "
<<
std
::
to_string
(
t_init
.
lap
()
/
1000000u
)
<<
"
\n
"
;
/*choose decryption onion, load and decrypt to plain text*/
ResType
res
=
load_files
(
db
,
table
);
glog
<<
"load_files: "
<<
std
::
to_string
(
t_init
.
lap
()
/
1000000u
)
<<
"
\n
"
;
std
::
string
annoTableName
=
analysis
.
getTableMeta
(
db
,
table
).
getAnonTableName
();
const
std
::
string
head
=
std
::
string
(
"INSERT INTO `"
)
+
db
+
"`.`"
+
annoTableName
+
"` "
;
/*reencryption to get the encrypted insert!!!*/
unsigned
int
i
=
0u
;
while
(
true
){
...
...
@@ -329,7 +341,9 @@ main(int argc, char* argv[]){
break
;
}
}
glog
<<
std
::
string
(
"gcount<<"
)
<<
std
::
to_string
(
gcount
)
<<
std
::
string
(
"
\n
"
);
glog
<<
"reencryptionAndInsert: "
<<
std
::
to_string
(
t_init
.
lap
()
/
1000000u
)
<<
"
\n
"
;
glog
<<
std
::
string
(
"gcount: "
)
<<
std
::
to_string
(
gcount
)
<<
std
::
string
(
"
\n
"
);
return
0
;
}
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