nucypher / nufhe

NuCypher fully homomorphic encryption (NuFHE) library implemented in Python
https://nufhe.readthedocs.io/en/latest/
GNU General Public License v3.0
441 stars 53 forks source link

About the possibility of operation of non-ciphertext and ciphertext #7

Open Luidy opened 5 years ago

Luidy commented 5 years ago

Hello. In order to reduce execution time. I wanna compute the operation (ex. gate_nand, gate_or etc) at the stage before generating the ciphertext. So I wanna compute 1 ciphertext and 1 encoding text before generating the ciphertext (any state before a complete ciphertext is generated). Is this possible?

tuxxy commented 5 years ago

Do you mean that you want to compute the logic gate on the plaintext and have the output be the result before you decide to compute on the ciphertext?

Luidy commented 5 years ago

If the plaintext you said is the same as the number 1, 0 I entered, it is not.

fjarri commented 5 years ago

Hm, I must admit, I'm still not quite sure what you mean. Do you want to ensure that the gate's kernels are precompiled before running it on your data? Could you perhaps provide some (pseudo)code illustrating what you want to do?