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
90bf3426
Commit
90bf3426
authored
Jan 20, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change 100000 to RAW_ASHE_MAX
parent
fe2aa10c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ASHE.hh
crypto/ASHE.hh
+2
-2
No files found.
crypto/ASHE.hh
View file @
90bf3426
...
@@ -23,8 +23,8 @@ public:
...
@@ -23,8 +23,8 @@ public:
unsigned
int
decrypt
(
long
ciphertext
,
uint64_t
inIv
);
unsigned
int
decrypt
(
long
ciphertext
,
uint64_t
inIv
);
uint64_t
get_IV
(){
return
IV
;};
uint64_t
get_IV
(){
return
IV
;};
static
uint64_t
Fi
(
uint64_t
IV
){
return
bf
.
encrypt
(
IV
)
%
100000
;}
static
uint64_t
Fi
(
uint64_t
IV
){
return
bf
.
encrypt
(
IV
)
%
RAW_ASHE_MAX
;}
static
uint64_t
Fi_1
(
uint64_t
IV
){
return
bf
.
encrypt
(
IV
-
1
)
%
100000
;}
static
uint64_t
Fi_1
(
uint64_t
IV
){
return
bf
.
encrypt
(
IV
-
1
)
%
RAW_ASHE_MAX
;}
static
std
::
pair
<
long
,
std
::
vector
<
uint64_t
>>
sum
(
std
::
vector
<
RAW_ASHE
>
);
static
std
::
pair
<
long
,
std
::
vector
<
uint64_t
>>
sum
(
std
::
vector
<
RAW_ASHE
>
);
static
uint64_t
decrypt_sum
(
std
::
pair
<
long
,
std
::
vector
<
uint64_t
>>
);
static
uint64_t
decrypt_sum
(
std
::
pair
<
long
,
std
::
vector
<
uint64_t
>>
);
};
};
...
...
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