lbibe / code

Lattice-based signature and Identity-Based Encryption are well-known cryptographic schemes, and having both efficient and provable secure schemes in the standard model is still a challenging task in light of the current NIST post-quantum competition. We address this problem in this paper by mixing standard IBE scheme, \`a la ABB (EUROCRYPT 2010) on Ring-SIS/LWE assumptions with the efficient trapdoor of Peikert and Micciancio (EUROCRYPT 2012) and we provide an efficient implementation. Our IBE scheme is more efficient than the IBE scheme of Ducas, Lyubashevsky and Prest based on NTRU assumption and is based on more standard assumptions. Although our signature scheme is not as efficient as recent lattice-based schemes based on Fiat-Shamir with Aborts, it is provably secure in the standard model and its efficiency is a few milliseconds.
14 stars 12 forks source link

Why doesn't the correctness of the decryption hold ? #3

Open aptx1255 opened 3 years ago

aptx1255 commented 3 years ago

When I build the project, invoke the decryption algorithm and run the main function directly, all the decryption results are zeros. And I found that there's without using modulus q in the encryption & decryption function. How to deal with this problem ?

urianr commented 2 months ago

This code is total crap. correctness doesn't work. Decryption is all zeros. I spotted several reasons for this. For instance , using int32 instead of int64 on several places. I fixed that and then decryption was no longer zero but still not correct. Also, the usage of threads seems to me without any real value. Making only the code complicated to read. So, I gave up. Studying that code was really a waste of time.