mardi 5 mars 2019

Convert integer number to polynomial in shell encryption

Yesterday I tried to build shell-encription project to test Additively and Multiplicatively Homomorphic.

link github: https://github.com/google/shell-encryption.git

I have a question : How can I transform an integer number to polynomial as an input plaintext?

example: I have two plaintexts: plaintext1: integer number: 10 plaintext2: integer number: 20 As i understand: Step 1: Transform 10 to polynomial_1 Transform 20 to polynomial_2 Step 2: encrypt polynomial_1 to cyphertext_1 encrypt polynomial_2 to cyphertext_2 Step 3: calculate: mul = cyphertext_1 * cyphertext_2 Step 4: target = Decrypt(mul)

I expect that target = 10 * 20 = 200.

But I do not know do step 1. Can you please show me how to transform an input integer to an input polynomial.

Thankyou

Aucun commentaire:

Enregistrer un commentaire