|
|
@@ -994,6 +994,18 @@ void bind_crypto_context(py::module &m) {
|
|
|
py::arg("privateKey"),
|
|
|
py::arg("indexList"),
|
|
|
py::doc(cc_EvalAutomorphismKeyGen_docs))
|
|
|
+ .def("EvalAutomorphism",
|
|
|
+ [](const CryptoContextImpl<DCRTPoly>& cc,
|
|
|
+ ConstCiphertext<DCRTPoly>& ciphertext,
|
|
|
+ uint32_t i,
|
|
|
+ const std::map<uint32_t, EvalKey<DCRTPoly>>& evalKeyMap)
|
|
|
+ {
|
|
|
+ return cc.EvalAutomorphism(ciphertext, i, evalKeyMap);
|
|
|
+ },
|
|
|
+ py::arg("ciphertext"),
|
|
|
+ py::arg("index"),
|
|
|
+ py::arg("evalKeyMap"),
|
|
|
+ py::doc(cc_EvalAutomorphism_docs))
|
|
|
.def("Compress", &CryptoContextImpl<DCRTPoly>::Compress,
|
|
|
py::arg("ciphertext"),
|
|
|
py::arg("towersLeft"))
|