cryptocontext_wrapper.h 858 B

1234567891011121314151617181920212223242526
  1. #ifndef OPENFHE_CRYPTOCONTEXT_BINDINGS_H
  2. #define OPENFHE_CRYPTOCONTEXT_BINDINGS_H
  3. #include <pybind11/pybind11.h>
  4. #include <pybind11/stl.h>
  5. #include <vector>
  6. #include <algorithm>
  7. #include <complex>
  8. #include "openfhe.h"
  9. #include "bindings.h"
  10. namespace py = pybind11;
  11. using namespace lbcrypto;
  12. using ParmType = typename DCRTPoly::Params;
  13. Plaintext MakeCKKSPackedPlaintextWrapper(std::shared_ptr<CryptoContextImpl<DCRTPoly>> &self,
  14. const std::vector<float> &value,
  15. size_t depth, uint32_t level,
  16. const std::shared_ptr<ParmType> params,
  17. usint slots);
  18. // std::shared_ptr<std::vector<Element>> EvalFastRotationPrecomputeWrapper(CryptoContext<DCRTPoly> &self,ConstCiphertext<Element> ciphertext) const {
  19. // return self->EvalFastRotationPrecompute(ciphertext);
  20. // }
  21. #endif // OPENFHE_CRYPTOCONTEXT_BINDINGS_H