#include #include #include #include "bindings.h" using namespace lbcrypto; namespace py = pybind11; template Plaintext DecryptInterface(Ciphertext ciphertext,const PrivateKey privateKey){ Plaintext plaintextDecResult; auto cc = ciphertext->GetCryptoContext(); cc->Decrypt(privateKey, ciphertext,&plaintextDecResult); return plaintextDecResult; } void bind_decryption(py::module &m){ m.def("Decrypt",&DecryptInterface,"Decrypt a ciphertext using private key"); }