Skip to content

Homomorphicity over Integers#3

Open
SudharakaP wants to merge 1 commit intocoron:masterfrom
SudharakaP:master
Open

Homomorphicity over Integers#3
SudharakaP wants to merge 1 commit intocoron:masterfrom
SudharakaP:master

Conversation

@SudharakaP
Copy link

Created methods to homomorhically add and multiply integers.

Created methods to homomorhically add and multiply integers.
@matlink
Copy link

matlink commented Mar 14, 2016

does that propagate the carry bit ? for example, summing 3+3 (11+11 in binary) is not the same as doing bitwise xor.

@SudharakaP
Copy link
Author

Yes it does propagate the carry bit. That means enc(3)+enc(3) will give enc(6). Which when decrypted will give 6.

@matlink
Copy link

matlink commented Mar 21, 2016

Okay. Do you know how the recryption is done? It's not very explicit in the paper, they say
Apply the decryption circuit to the expanded ciphertext z and the encrypted secret key bits σi. Then how can I apply the decryption circuit, since it has a modulo 2 operation and requires a lot of multiplication then?

@SudharakaP
Copy link
Author

I am sorry, I don't know how recryption is done exactly. I am not actively involved this project anymore so its best to ask the original author (coron).

@matlink
Copy link

matlink commented Mar 24, 2016

Shouldn't you encrypt the carrybit in the addEnc() function ? Well, it works for you because you are using the encrypt function of the Pk class, which is using the self.p secret key... But when using the PkRecrypt's encrypt_pk() function, there seems to be a mistake even if one encrypts the carrybit. I'm investigating on it.

@matlink
Copy link

matlink commented Mar 29, 2016

I would like to implement faster multiplication like Karatsuba's algorithm (https://fr.wikipedia.org/wiki/Algorithme_de_Karatsuba), however in this algorithm you need to be able to substract integers. Could this approach be adapted for negative cipherintegers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants