binfhecontext_wrapper.h 854 B

12345678910111213141516171819202122
  1. #ifndef BINFHE_CRYPTOCONTEXT_BINDINGS_H
  2. #define BINFHE_CRYPTOCONTEXT_BINDINGS_H
  3. #include <pybind11/pybind11.h>
  4. #include <pybind11/stl.h>
  5. #include "openfhe.h"
  6. #include "binfhecontext.h"
  7. namespace py = pybind11;
  8. using namespace lbcrypto;
  9. LWECiphertext binfhe_EncryptWrapper(BinFHEContext &self,
  10. ConstLWEPrivateKey sk,
  11. const LWEPlaintext &m,
  12. BINFHE_OUTPUT output,
  13. LWEPlaintextModulus p,
  14. uint64_t mod);
  15. LWEPlaintext binfhe_DecryptWrapper(BinFHEContext &self,
  16. ConstLWEPrivateKey sk,
  17. ConstLWECiphertext ct,
  18. LWEPlaintextModulus p);
  19. #endif // BINFHE_CRYPTOCONTEXT_BINDINGS_H