cryptocontext_wrapper.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  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. Ciphertext<DCRTPoly> EvalFastRotationPrecomputeWrapper(CryptoContext<DCRTPoly>& self,
  19. ConstCiphertext<DCRTPoly> ciphertext);
  20. Ciphertext<DCRTPoly> EvalFastRotationWrapper(CryptoContext<DCRTPoly>& self,
  21. ConstCiphertext<DCRTPoly> ciphertext,
  22. const usint index,
  23. const usint m,
  24. ConstCiphertext<DCRTPoly> digits);
  25. #endif // OPENFHE_CRYPTOCONTEXT_BINDINGS_H