Skip to content

Commit 052b700

Browse files
216 standardize binding (#240)
* Multiple changes to bindings, removed some wrappers * Removed cryptocontext_wrapper.cpp * binfhe_bindings cleanup * binfhe_bindings cleanup (2) --------- Co-authored-by: Dmitriy Suponitskiy <dsuponitskiy@dualitytech.com>
1 parent 1ce9348 commit 052b700

File tree

7 files changed

+1008
-1148
lines changed

7 files changed

+1008
-1148
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ pybind11_add_module(openfhe
7171
src/lib/binfhe_bindings.cpp
7272
src/lib/binfhe/binfhecontext_wrapper.cpp
7373
src/lib/pke/serialization.cpp
74-
src/lib/pke/cryptocontext_wrapper.cpp
7574
)
7675
### Python installation
7776
# Allow the user to specify the path to Python executable (if not provided, find it)

src/include/binfhe/binfhecontext_wrapper.h

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -31,43 +31,14 @@
3131
#ifndef __BINFHECONTEXT_WRAPPER_H__
3232
#define __BINFHECONTEXT_WRAPPER_H__
3333

34-
#include <pybind11/pybind11.h>
35-
#include <pybind11/stl.h>
36-
#include "openfhe.h"
3734
#include "binfhecontext.h"
38-
#include <functional>
35+
36+
#include <pybind11/pybind11.h>
3937
#include <pybind11/functional.h>
4038

4139
namespace py = pybind11;
4240
using namespace lbcrypto;
43-
LWECiphertext binfhe_EncryptWrapper(BinFHEContext &self,
44-
ConstLWEPrivateKey sk,
45-
const LWEPlaintext &m,
46-
BINFHE_OUTPUT output,
47-
LWEPlaintextModulus p,
48-
uint64_t mod);
49-
LWEPlaintext binfhe_DecryptWrapper(BinFHEContext &self,
50-
ConstLWEPrivateKey sk,
51-
ConstLWECiphertext ct,
52-
LWEPlaintextModulus p);
53-
54-
uint32_t GetnWrapper(BinFHEContext &self);
55-
56-
const uint64_t GetqWrapper(BinFHEContext &self) ;
57-
58-
const uint64_t GetMaxPlaintextSpaceWrapper(BinFHEContext &self);
59-
60-
const uint64_t GetBetaWrapper(BinFHEContext &self);
61-
62-
const uint64_t GetLWECiphertextModulusWrapper(LWECiphertext &self);
6341

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

66-
NativeInteger StaticFunction(NativeInteger m, NativeInteger p);
67-
68-
// Define static variables to hold the state
69-
// extern py::function static_f;
70-
71-
LWECiphertext EvalFuncWrapper(BinFHEContext &self, ConstLWECiphertext &ct, const std::vector<uint64_t> &LUT);
72-
7344
#endif // __BINFHECONTEXT_WRAPPER_H__

src/include/pke/cryptocontext_wrapper.h

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)