Hi, I wonder how to generate a LUT via a vector of inputs. I saw in the library that it’s only possible to generate a LUT via a function.
Hi @sofianeazgh,
Instead of calling GenerateLUTviaFunction
, you can pass the vector directly ( I am referring to the example at openfhe-development/eval-function.cpp at v1.0.1 · openfheorg/openfhe-development · GitHub). Please see the code at openfhe-development/binfhecontext.cpp at v1.0.1 · openfheorg/openfhe-development · GitHub to get an idea on how to populate the vector with data.
Hi @ypolyakov,
Thank you for your response and the pointers in it.
I may have another question : would it be possible to evaluate a private LUT i.e all the element of the LUT will be encrypted.
Thank you in advance.
Hi @sofianeazgh
So your question is whether the look-up table can be encrypted (the function evaluated using the look-up table is kept secret). I assume the data this function is applied to is also encrypted. It is an interesting question… OpenFHE does not support this setting. I don’t see an obvious way to do this efficiently right away.
Thanks,
Yuriy