ruandc / Ring-LWE-Encryption

Other
48 stars 17 forks source link

I need some help from your side... #2

Open JintoAntony opened 8 years ago

JintoAntony commented 8 years ago

Hi, Thanks for your great work. I am trying to translate this into JAVA, and i need little help from your side. Right now i am learning the code, ie. written in C. So, i have many doubts and question regarding many portions. Can you help me in this project ..?

Regards, Jinto Antony

SupaSonik commented 8 years ago

Decryption is also implemented. See RLWE_dec2() inside lwe.h.

SupaSonik commented 8 years ago

After cloning the repo you should navigate to x86/ and then type "make".

Converting this code to java shouldn't be a problem.

On Thu, Jul 28, 2016 at 9:25 AM, Jinto Antony notifications@github.com wrote:

Can you show me some output screen shot...? Do you think converting this code to Java, will arise any problems...? ( From your personal perceptive : Is there any problem for you, converting this code to java by me )

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ruandc/Ring-LWE-Encryption/issues/2#issuecomment-235819729, or mute the thread https://github.com/notifications/unsubscribe-auth/ADhxr3aHaDz7EuHjwVuUzBHpLJ2yc37_ks5qaFlUgaJpZM4JWEx5 .

Regards, Ruan de Clercq Mobile: +32 048 605 8774 ruandeclercq@gmail.com

SupaSonik commented 8 years ago

Yes this can be done. Currently there is a "Enc/Dec" unit test inside x86/main.c. It generates random messages, encrypts the message, and then decrypts it. Currently, message_gen2 is used to generate the random messages. Currently, the RLWE_enc2 function takes the parameter "m" that consists of an array of 1-bit values. Therefore, you will have to encode your string to an array of 1-bit values.

SupaSonik commented 8 years ago

Ring-LWE was developed to provide a crypto algorithms that will be secure when quantum computers one day become reality. RSA and ECC would become broken if quantum computers are available. We don't really care about the performance of Ring-LWE on quantum computers, just that the crypto will still be OK if quantum computers one day become reality.

SupaSonik commented 8 years ago

uint16_t is a 16-bit unsigned integer. uint32_t is a 32-bit unsigned integer.