TenSEAL icon indicating copy to clipboard operation
TenSEAL copied to clipboard

Manual relinearization

Open chrisoraruf opened this issue 2 years ago • 1 comments

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

chrisoraruf avatar Feb 02 '23 19:02 chrisoraruf

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 :)

youben11 avatar Apr 13 '23 13:04 youben11