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
01927f2f
Commit
01927f2f
authored
Jan 02, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test_search
parent
07ea0102
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
core-test_OPE-2929-1514860476
core-test_OPE-2929-1514860476
+0
-0
hgd.hh
crypto/hgd.hh
+2
-0
prng.hh
crypto/prng.hh
+1
-0
test_search.cc
debug/test_search.cc
+15
-0
No files found.
core-test_OPE-2929-1514860476
deleted
100644 → 0
View file @
07ea0102
File deleted
crypto/hgd.hh
View file @
01927f2f
/*hgd is needed by OPE*/
#pragma once
#include <NTL/ZZ.h>
#include <crypto/prng.hh>
...
...
crypto/prng.hh
View file @
01927f2f
...
...
@@ -8,6 +8,7 @@
#include <NTL/ZZ.h>
#include <crypto/bn.hh>
/*generate random somthing*/
class
PRNG
{
public
:
template
<
class
T
>
...
...
debug/test_search.cc
0 → 100644
View file @
01927f2f
#include <vector>
#include "util/errstream.hh"
#include "crypto/search.hh"
static
void
test_search
(){
search_priv
s
(
"my key"
);
auto
cl
=
s
.
transform
({
"hello"
,
"world"
,
"hello"
,
"testing"
,
"test"
});
throw_c
(
s
.
match
(
cl
,
s
.
wordkey
(
"hello"
)));
throw_c
(
!
s
.
match
(
cl
,
s
.
wordkey
(
"Hello"
)));
throw_c
(
s
.
match
(
cl
,
s
.
wordkey
(
"world"
)));
}
int
main
(){
test_search
();
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