Hello,
I’m trying to understand better how eval keys should be managed in OpenFHE. Assume that we have the following scenario. We run a typical client-server application, where the client sends eval keys, the server does some costly operation, returns the result to the client and finally clears the keys using this function. I tried to run two copies of the same code at the same time and at the moment the first process finishes then the second one crashes since it does not have eval keys inside the cc anymore.
Two important notes:
-
We want to clear the keys in the server since they are big and we do not want to keep them in memory waiting for client requests.
-
Notice that this problem does not happen when you have calls from different clients with different keys, in that case you just clear the keys with the corresponding keytag.
The whole problem would go away if there was a way to check if some other process is using the same keys in OpenFHE. Is there such a function?
Thank you!