Open AlexDanDuna opened 6 years ago
The code looks right to me, maybe the problem is with the choice of parameters? Does bootstrapping work when you do it on the client side? Does the problem persist when you use the ascii I/O instead of the binary one?
Thank you so much! I tried using ASCII (I used the "<<" and ">>" operators, hopefully it's those) and it worked. I am actually unsure whether the binary not working wasn't due to me not doing a clean/rebuild, but I'm a bit short on time to try and see it now.. I'll note it down and give it a try in a few days.
EDIT: To answer the other question, yes, the computation worked when ran entirely on the client, but I sometimes ran into segmentation faults (since it's probably important, I was using more than one thread). If I may ask, could that be because of incorrect parameters for bootstrapping?
Once again, many thanks for your help.
I'm trying to do a client-server application, where the client generates the context, PK and SK and then sends the context and PK to the server like this:
Creation:
Sending:
The server tries to rebuild the context and public key like this:
The problem is that the results I get from the computation on the server are wrong when I decrypt them on the client :(. Is boostrapping supported by Binary IO? Did I miss any step in sending/receiving the context and public key taking into account the fact that boostrapping is used?