OpenMined / TenSEAL

A library for doing homomorphic encryption operations on tensors
Apache License 2.0
837 stars 158 forks source link

Key Switching on calculated server side data #431

Open 87surendra opened 1 year ago

87surendra commented 1 year ago

Hello there,

I have the following working scenario using SEAL library.

Client 1:

generate public key 1 generate secret key 1 encrypt data 1 Client 2:

generate public key 2 generate secret key 2 encrypt data 2 Server:

decrypt 'data 1' using 'public key 1' and 'data 2' using 'public key 2'. Perform any mathematical operation and save the result. Send this calculated result to 'Client 2'

Client 2:

Read and decrypt this result using a secret key.

I am not sure, if should I perform public key switching on "server-side" and decrypt this result at client 2.

My main goal is to achieve sending data to the server by two different clients and read the result by any of the client.

Many thanks in advance for the solution. Surendra