Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ pybind11_add_module(openfhe
src/lib/binfhe_bindings.cpp
src/lib/binfhe/binfhecontext_wrapper.cpp
src/lib/pke/serialization.cpp
src/lib/pke/cryptocontext_wrapper.cpp
)
### Python installation
# Allow the user to specify the path to Python executable (if not provided, find it)
Expand Down
33 changes: 2 additions & 31 deletions src/include/binfhe/binfhecontext_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,43 +31,14 @@
#ifndef __BINFHECONTEXT_WRAPPER_H__
#define __BINFHECONTEXT_WRAPPER_H__

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "openfhe.h"
#include "binfhecontext.h"
#include <functional>

#include <pybind11/pybind11.h>
#include <pybind11/functional.h>

namespace py = pybind11;
using namespace lbcrypto;
LWECiphertext binfhe_EncryptWrapper(BinFHEContext &self,
ConstLWEPrivateKey sk,
const LWEPlaintext &m,
BINFHE_OUTPUT output,
LWEPlaintextModulus p,
uint64_t mod);
LWEPlaintext binfhe_DecryptWrapper(BinFHEContext &self,
ConstLWEPrivateKey sk,
ConstLWECiphertext ct,
LWEPlaintextModulus p);

uint32_t GetnWrapper(BinFHEContext &self);

const uint64_t GetqWrapper(BinFHEContext &self) ;

const uint64_t GetMaxPlaintextSpaceWrapper(BinFHEContext &self);

const uint64_t GetBetaWrapper(BinFHEContext &self);

const uint64_t GetLWECiphertextModulusWrapper(LWECiphertext &self);

std::vector<uint64_t> GenerateLUTviaFunctionWrapper(BinFHEContext &self, py::function f, uint64_t p);

NativeInteger StaticFunction(NativeInteger m, NativeInteger p);

// Define static variables to hold the state
// extern py::function static_f;

LWECiphertext EvalFuncWrapper(BinFHEContext &self, ConstLWECiphertext &ct, const std::vector<uint64_t> &LUT);

#endif // __BINFHECONTEXT_WRAPPER_H__
67 changes: 0 additions & 67 deletions src/include/pke/cryptocontext_wrapper.h

This file was deleted.

Loading