TenSEAL
TenSEAL copied to clipboard
Manual relinearization
How can I manually call a relinearization of a ciphertext after switching off auto relinearization?
Using some other HE libraries, I was used to call a method to generate a relinearization key and then manually relinearize a ciphertext using something like "context.relinearize(ciphertext )". Since I would like to compare the exact operations, I am trying to implement the same passages I was used to. I was able to deactivate auto relinearization and (probably) create a relinearization key with the method "generate_relin_keys". Now, how do I call something like "context.relinearize(ciphertext )"?
I cannot find any solution in the demos. If you can guide through the passages from switching off the auto relinearization, I would really appreciate.
Thank you guys, Christian
The fact that you can't do it is just because it's not exposed through the TenSEAL python bindings. PRs are welcome to add this support :)