Skip to content

Commit 867a0bd

Browse files
authored
Merge pull request #150 from openfheorg/dev
Update main to v0.8.8
2 parents 2ca3ce6 + 031e128 commit 867a0bd

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project (OpenFHE-Python)
44

55
set(OPENFHE_PYTHON_VERSION_MAJOR 0)
66
set(OPENFHE_PYTHON_VERSION_MINOR 8)
7-
set(OPENFHE_PYTHON_VERSION_PATCH 7)
7+
set(OPENFHE_PYTHON_VERSION_PATCH 8)
88
set(OPENFHE_PYTHON_VERSION ${OPENFHE_PYTHON_VERSION_MAJOR}.${OPENFHE_PYTHON_VERSION_MINOR}.${OPENFHE_PYTHON_VERSION_PATCH})
99

1010
set(CMAKE_CXX_STANDARD 17)
@@ -14,7 +14,7 @@ if(APPLE)
1414
set(CMAKE_CXX_VISIBILITY_PRESET default)
1515
endif()
1616

17-
find_package(OpenFHE 1.1.3 REQUIRED)
17+
find_package(OpenFHE 1.2.0 REQUIRED)
1818
find_package(pybind11 REQUIRED)
1919

2020
set( CMAKE_CXX_FLAGS ${OpenFHE_CXX_FLAGS} )

src/lib/bindings.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void bind_parameters(py::module &m,const std::string name)
5656
.def("GetKeySwitchCount", &CCParams<T>::GetKeySwitchCount)
5757
.def("GetEncryptionTechnique", &CCParams<T>::GetEncryptionTechnique)
5858
.def("GetMultiplicationTechnique", &CCParams<T>::GetMultiplicationTechnique)
59-
.def("GetMultiHopModSize", &CCParams<T>::GetMultiHopModSize)
59+
.def("GetPRENumHops", &CCParams<T>::GetPRENumHops)
6060
.def("GetInteractiveBootCompressionLevel", &CCParams<T>::GetInteractiveBootCompressionLevel)
6161
// setters
6262
.def("SetPlaintextModulus", &CCParams<T>::SetPlaintextModulus)
@@ -86,7 +86,7 @@ void bind_parameters(py::module &m,const std::string name)
8686
.def("SetKeySwitchCount", &CCParams<T>::SetKeySwitchCount)
8787
.def("SetEncryptionTechnique", &CCParams<T>::SetEncryptionTechnique)
8888
.def("SetMultiplicationTechnique", &CCParams<T>::SetMultiplicationTechnique)
89-
.def("SetMultiHopModSize", &CCParams<T>::SetMultiHopModSize)
89+
.def("SetPRENumHops", &CCParams<T>::SetPRENumHops)
9090
.def("SetInteractiveBootCompressionLevel", &CCParams<T>::SetInteractiveBootCompressionLevel)
9191
.def("__str__",[](const CCParams<T> &params) {
9292
std::stringstream stream;
@@ -930,13 +930,11 @@ void bind_enums_and_constants(py::module &m)
930930
.value("NOT_SET", ProxyReEncryptionMode::NOT_SET)
931931
.value("INDCPA", ProxyReEncryptionMode::INDCPA)
932932
.value("FIXED_NOISE_HRA", ProxyReEncryptionMode::FIXED_NOISE_HRA)
933-
.value("NOISE_FLOODING_HRA", ProxyReEncryptionMode::NOISE_FLOODING_HRA)
934-
.value("DIVIDE_AND_ROUND_HRA", ProxyReEncryptionMode::DIVIDE_AND_ROUND_HRA);
933+
.value("NOISE_FLOODING_HRA", ProxyReEncryptionMode::NOISE_FLOODING_HRA);
935934
m.attr("NOT_SET") = py::cast(ProxyReEncryptionMode::NOT_SET);
936935
m.attr("INDCPA") = py::cast(ProxyReEncryptionMode::INDCPA);
937936
m.attr("FIXED_NOISE_HRA") = py::cast(ProxyReEncryptionMode::FIXED_NOISE_HRA);
938937
m.attr("NOISE_FLOODING_HRA") = py::cast(ProxyReEncryptionMode::NOISE_FLOODING_HRA);
939-
m.attr("DIVIDE_AND_ROUND_HRA") = py::cast(ProxyReEncryptionMode::DIVIDE_AND_ROUND_HRA);
940938

941939
// MultipartyMode
942940
py::enum_<MultipartyMode>(m, "MultipartyMode")
@@ -1063,6 +1061,7 @@ void bind_encodings(py::module &m)
10631061
.def("SetFormat", &PlaintextImpl::SetFormat,
10641062
ptx_SetFormat_docs,
10651063
py::arg("fmt"))
1064+
.def("GetCoefPackedValue", &PlaintextImpl::GetCoefPackedValue)
10661065
.def("GetPackedValue", &PlaintextImpl::GetPackedValue)
10671066
.def("GetCKKSPackedValue", &PlaintextImpl::GetCKKSPackedValue,
10681067
ptx_GetCKKSPackedValue_docs)

src/lib/binfhe_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void bind_binfhe_context(py::module &m)
160160
py::arg("set"),
161161
py::arg("method") = GINX)
162162
//void GenerateBinFHEContext(BINFHE_PARAMSET set, bool arbFunc, uint32_t logQ = 11, int64_t N = 0, BINFHE_METHOD method = GINX, bool timeOptimization = false)
163-
.def("GenerateBinFHEContext", static_cast<void (BinFHEContext::*)(BINFHE_PARAMSET, bool, uint32_t, int64_t, BINFHE_METHOD, bool)>(&BinFHEContext::GenerateBinFHEContext),
163+
.def("GenerateBinFHEContext", static_cast<void (BinFHEContext::*)(BINFHE_PARAMSET, bool, uint32_t, uint32_t, BINFHE_METHOD, bool)>(&BinFHEContext::GenerateBinFHEContext),
164164
binfhe_GenerateBinFHEContext_docs,
165165
py::arg("set"),
166166
py::arg("arbFunc"),

0 commit comments

Comments
 (0)