Commit 90bf3426 authored by yiwenshao's avatar yiwenshao

change 100000 to RAW_ASHE_MAX

parent fe2aa10c
...@@ -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>>);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment