https://github.com/renaud1239/kreyvium
Reference code of the KREYVIUM algorithm, a FHE-friendly 128-bit key stream cipher.
https://github.com/renaud1239/kreyvium
cryptography stream-cipher
Last synced: 9 months ago
JSON representation
Reference code of the KREYVIUM algorithm, a FHE-friendly 128-bit key stream cipher.
- Host: GitHub
- URL: https://github.com/renaud1239/kreyvium
- Owner: renaud1239
- License: gpl-3.0
- Created: 2017-07-24T14:35:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-14T15:41:42.000Z (over 8 years ago)
- Last Synced: 2025-07-27T15:55:36.165Z (10 months ago)
- Topics: cryptography, stream-cipher
- Language: C++
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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!