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
d189baff
Commit
d189baff
authored
Jan 30, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove memory leak in SWP
parent
b354238c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
test_layer_SWP.cc
debug/test_layer_SWP.cc
+1
-0
CryptoHandlers.cc
main/CryptoHandlers.cc
+1
-1
reuse.cc
wrapper/reuse.cc
+1
-1
No files found.
debug/test_layer_SWP.cc
View file @
d189baff
...
@@ -140,6 +140,7 @@ main(int argc,char**argv) {
...
@@ -140,6 +140,7 @@ main(int argc,char**argv) {
Item
*
plain
=
getItemString
(
input
);
Item
*
plain
=
getItemString
(
input
);
auto
res
=
tokenize
(
input
);
auto
res
=
tokenize
(
input
);
control
(
sw
,
plain
,
num_of_tests
,
length
*
i
,
res
->
size
());
control
(
sw
,
plain
,
num_of_tests
,
length
*
i
,
res
->
size
());
delete
res
;
}
}
return
0
;
return
0
;
}
}
...
...
main/CryptoHandlers.cc
View file @
d189baff
...
@@ -1479,7 +1479,7 @@ Search::encrypt(const Item &ptext, uint64_t IV) const
...
@@ -1479,7 +1479,7 @@ Search::encrypt(const Item &ptext, uint64_t IV) const
//TODO: remove string, string serves this purpose now..
//TODO: remove string, string serves this purpose now..
const
std
::
list
<
std
::
string
>
*
const
tokens
=
tokenize
(
plainstr
);
const
std
::
list
<
std
::
string
>
*
const
tokens
=
tokenize
(
plainstr
);
const
std
::
string
ciph
=
encryptSWP
(
key
,
*
tokens
);
const
std
::
string
ciph
=
encryptSWP
(
key
,
*
tokens
);
delete
tokens
;
LOG
(
encl
)
<<
"SEARCH encrypt "
<<
plainstr
<<
" --> "
<<
ciph
;
LOG
(
encl
)
<<
"SEARCH encrypt "
<<
plainstr
<<
" --> "
<<
ciph
;
return
new
Item_string
(
newmem
(
ciph
),
ciph
.
length
(),
&
my_charset_bin
);
return
new
Item_string
(
newmem
(
ciph
),
ciph
.
length
(),
&
my_charset_bin
);
...
...
wrapper/reuse.cc
View file @
d189baff
...
@@ -593,8 +593,8 @@ void storeStrategies(std::vector<FieldMetaTrans>& res){
...
@@ -593,8 +593,8 @@ void storeStrategies(std::vector<FieldMetaTrans>& res){
static
const
std
::
vector
<
onion
>
onion_order
=
{
static
const
std
::
vector
<
onion
>
onion_order
=
{
oDET
,
oASHE
,
oASHE
,
oDET
,
oOPE
,
oOPE
,
oAGG
,
oAGG
,
};
};
...
...
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