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
4835a594
Commit
4835a594
authored
Jan 29, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add constant useSalt
parent
84180ae8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
constants.cc
util/constants.cc
+6
-1
constants.hh
util/constants.hh
+1
-0
No files found.
util/constants.cc
View file @
4835a594
...
@@ -55,13 +55,18 @@ globalConstants initGlobalConstants(){
...
@@ -55,13 +55,18 @@ globalConstants initGlobalConstants(){
}
else
{
}
else
{
res
.
useDET
=
false
;
res
.
useDET
=
false
;
}
}
}
else
if
(
head
==
"useSalt"
){
if
(
line
.
substr
(
index
+
1
)
==
"true"
){
res
.
useSalt
=
true
;
}
else
{
res
.
useSalt
=
false
;
}
}
else
if
(
head
==
"other"
)
{
}
else
if
(
head
==
"other"
)
{
;
;
}
else
{
}
else
{
assert
(
0
);
assert
(
0
);
}
}
}
}
/* the following values need not be determined
/* the following values need not be determined
at runtime.*/
at runtime.*/
res
.
logFile
=
"LOG.TXT"
;
res
.
logFile
=
"LOG.TXT"
;
...
...
util/constants.hh
View file @
4835a594
...
@@ -17,6 +17,7 @@ struct globalConstants{
...
@@ -17,6 +17,7 @@ struct globalConstants{
bool
useOPE
;
bool
useOPE
;
bool
useSWP
;
bool
useSWP
;
bool
useDET
;
bool
useDET
;
bool
useSalt
;
std
::
string
logFile
;
/*file name for log*/
std
::
string
logFile
;
/*file name for log*/
};
};
...
...
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