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
cf942c69
Commit
cf942c69
authored
Jan 18, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
able to use simple strategy for load
parent
e437ad25
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
loadtemp.cc
debug/loadtemp.cc
+5
-4
reuse.cc
wrapper/reuse.cc
+10
-0
reuse.hh
wrapper/reuse.hh
+2
-0
No files found.
debug/loadtemp.cc
View file @
cf942c69
...
@@ -102,16 +102,17 @@ std::shared_ptr<ReturnMeta> getReturnMeta(std::vector<FieldMeta*> fms,
...
@@ -102,16 +102,17 @@ std::shared_ptr<ReturnMeta> getReturnMeta(std::vector<FieldMeta*> fms,
int
pos
=
0
;
int
pos
=
0
;
//construct OLK
//construct OLK
for
(
auto
i
=
0u
;
i
<
tfds
.
size
();
i
++
){
for
(
auto
i
=
0u
;
i
<
tfds
.
size
();
i
++
){
onion
o
=
tfds
[
i
].
getChoosenOnionO
()[
0
];
int
index
=
getDecryptionOnionIndex
(
tfds
);
onion
o
=
tfds
[
i
].
getChoosenOnionO
()[
index
];
SECLEVEL
l
=
tfds
[
i
].
getOriginalFieldMeta
()
->
getOnionMeta
(
o
)
->
getSecLevel
();
SECLEVEL
l
=
tfds
[
i
].
getOriginalFieldMeta
()
->
getOnionMeta
(
o
)
->
getSecLevel
();
FieldMeta
*
k
=
tfds
[
i
].
getOriginalFieldMeta
();
FieldMeta
*
k
=
tfds
[
i
].
getOriginalFieldMeta
();
OLK
curOLK
(
o
,
l
,
k
);
OLK
curOLK
(
o
,
l
,
k
);
addToReturn
(
myReturnMeta
.
get
(),
pos
++
,
curOLK
,
true
,
k
->
getFieldName
());
addToReturn
(
myReturnMeta
.
get
(),
pos
++
,
curOLK
,
true
,
k
->
getFieldName
());
addSaltToReturn
(
myReturnMeta
.
get
(),
pos
++
);
addSaltToReturn
(
myReturnMeta
.
get
(),
pos
++
);
ggbt
.
field_types
.
push_back
(
tfds
[
i
].
getChoosenFieldTypes
()[
0
]);
ggbt
.
field_types
.
push_back
(
tfds
[
i
].
getChoosenFieldTypes
()[
index
]);
ggbt
.
field_names
.
push_back
(
tfds
[
i
].
getChoosenOnionName
()[
0
]);
ggbt
.
field_names
.
push_back
(
tfds
[
i
].
getChoosenOnionName
()[
index
]);
ggbt
.
field_lengths
.
push_back
(
tfds
[
i
].
getChoosenFieldLengths
()[
0
]);
ggbt
.
field_lengths
.
push_back
(
tfds
[
i
].
getChoosenFieldLengths
()[
index
]);
ggbt
.
field_types
.
push_back
(
tfds
[
i
].
getSaltType
());
ggbt
.
field_types
.
push_back
(
tfds
[
i
].
getSaltType
());
ggbt
.
field_names
.
push_back
(
tfds
[
i
].
getSaltName
());
ggbt
.
field_names
.
push_back
(
tfds
[
i
].
getSaltName
());
ggbt
.
field_lengths
.
push_back
(
tfds
[
i
].
getSaltLength
());
ggbt
.
field_lengths
.
push_back
(
tfds
[
i
].
getSaltLength
());
...
...
wrapper/reuse.cc
View file @
cf942c69
...
@@ -400,3 +400,13 @@ void storeStrategies(std::vector<FieldMetaTrans>& res){
...
@@ -400,3 +400,13 @@ void storeStrategies(std::vector<FieldMetaTrans>& res){
}
}
}
}
int
getDecryptionOnionIndex
(
std
::
vector
<
FieldMetaTrans
>&
fdtrans
)
{
int
res
=
0
;
return
res
;
}
wrapper/reuse.hh
View file @
cf942c69
...
@@ -152,3 +152,5 @@ enum class STORE_STRATEGY{
...
@@ -152,3 +152,5 @@ enum class STORE_STRATEGY{
FIRST
,
FIRST
,
ALL
ALL
};
};
int
getDecryptionOnionIndex
(
std
::
vector
<
FieldMetaTrans
>&
res
);
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