Skip to content

Reference code of the KREYVIUM algorithm, a FHE-friendly 128-bit key stream cipher.

License

Notifications You must be signed in to change notification settings

renaud1239/Kreyvium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reference code of the KREYVIUM stream cipher

This is the reference code for the KREYVIUM stream cipher, a 128-bits variant of TRIVIUM published in A. Canteaut, S. Carpov, C. Fontaine, T. Lepoint, M. Naya-Plasencia, P. Paillier and R. Sirdey, "Stream ciphers: a practical solution for efficient homomorphic-ciphertext compression", Proceedings of the 23rd International Conference on Fast Software Encryption, Lecture Notes in Computer Science, vol. 9783, pp. 313-333, 2016.

This code is only a straight translation of the specification in the aforementioned paper, without any particular optimizations.

To compile the reference code, run it and compare its output to the reference just do:

g++ kreyvium-ref.cpp
./a.out < kreyvium.dat > tmp
diff tmp kreyvium.out

That's all folks!

About

Reference code of the KREYVIUM algorithm, a FHE-friendly 128-bit key stream cipher.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages