Skip to content

LFKOKAMI/zuc-256

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

You can compile it with the command:

g++ zuc.cpp zuc.h BIT.h main.cpp -pthread -O3 -std=c++11 -march=native -fopenmp

================================================================================ You can change the configuration in main.cpp.

---If you want to test the bias in the keystream, please define TEST_KEYSTREAM.

---If you want to test the bias in the LFSR, please define TEST_INTERNAL_STATE.

---They both cannot be defined at the same time.

---You can modify the value of threadNum according to your machines.

=============================================================================== You are required to input something.

E.g., if you want to test the 30-round attack on zuc-v2 (the bias is 2^{-19.2}),

please first input "2".

Then, please input "x 15 0" if the key varies in each sample, where x is an integer you input.

Please make sure that 2^x * threadNum > 2^42 to detect a valid biased linear relation for 30-round zuc-v2

================================================================================ In my experiment, due to the limits of the machine, threadNum = 110 is used.

Then, I input "2".

Next, I input "35 15 0".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages