Skip to content

upgrading SEAL version to v3.7.1 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2022
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
2 changes: 1 addition & 1 deletion SEAL
Submodule SEAL updated 87 files
+1 −1 .clang-format
+9 −4 .gitignore
+104 −1 CHANGES.md
+124 −27 CMakeLists.txt
+43 −0 NOTICE
+99 −17 README.md
+1 −1 android/app/build.gradle
+1 −1 android/build.gradle
+1 −1 android/gradle/wrapper/gradle-wrapper.properties
+19 −13 cmake/CheckCXXIntrinsicsHeader.cmake
+1 −1 cmake/EnableCXX17.cmake
+1 −1 cmake/ExternalBenchmark.cmake
+32 −0 cmake/ExternalIntelHEXL.cmake
+50 −24 cmake/SEALConfig.cmake.in
+4 −1 cmake/SEALMacros.cmake
+2 −2 dotnet/examples/1_BFV_Basics.cs
+5 −5 dotnet/examples/6_Serialization.cs
+2 −2 dotnet/examples/7_Performance.cs
+1 −0 dotnet/nuget/SEALNet-multi.nuspec.in
+1 −0 dotnet/nuget/SEALNet.nuspec.in
+3 −0 dotnet/src/EncryptionParameters.cs
+6 −0 dotnet/src/Encryptor.cs
+6 −6 dotnet/src/Evaluator.cs
+1 −1 dotnet/src/MemoryPoolHandle.cs
+5 −6 dotnet/src/Serializable.cs
+5 −0 dotnet/src/tools/Utilities.cs
+17 −5 native/bench/CMakeLists.txt
+15 −2 native/bench/bench.cpp
+14 −0 native/bench/bench.h
+42 −0 native/bench/bfv.cpp
+50 −0 native/bench/ckks.cpp
+109 −0 native/bench/ntt.cpp
+2 −2 native/examples/1_bfv_basics.cpp
+1 −1 native/examples/7_performance.cpp
+3 −3 native/examples/CMakeLists.txt
+8 −0 native/examples/examples.h
+1 −1 native/src/seal/CMakeLists.txt
+8 −8 native/src/seal/batchencoder.cpp
+8 −8 native/src/seal/batchencoder.h
+13 −3 native/src/seal/ciphertext.cpp
+7 −6 native/src/seal/ciphertext.h
+24 −24 native/src/seal/context.h
+61 −28 native/src/seal/decryptor.cpp
+140 −97 native/src/seal/evaluator.cpp
+81 −73 native/src/seal/evaluator.h
+2 −2 native/src/seal/memorymanager.h
+28 −9 native/src/seal/randomgen.cpp
+19 −7 native/src/seal/randomgen.h
+4 −6 native/src/seal/serializable.h
+2 −2 native/src/seal/serialization.cpp
+2 −2 native/src/seal/serialization.h
+1 −1 native/src/seal/util/CMakeLists.txt
+9 −1 native/src/seal/util/clang.h
+5 −5 native/src/seal/util/common.h
+2 −0 native/src/seal/util/config.h.in
+20 −3 native/src/seal/util/defines.h
+2 −2 native/src/seal/util/dwthandler.h
+10 −1 native/src/seal/util/gcc.h
+1 −1 native/src/seal/util/globals.cpp
+1 −0 native/src/seal/util/locks.h
+8 −8 native/src/seal/util/mempool.cpp
+10 −3 native/src/seal/util/msvc.h
+289 −0 native/src/seal/util/ntt.cpp
+2 −40 native/src/seal/util/ntt.h
+136 −0 native/src/seal/util/polyarithsmallmod.cpp
+5 −95 native/src/seal/util/polyarithsmallmod.h
+28 −0 native/src/seal/util/rlwe.cpp
+12 −0 native/src/seal/util/rlwe.h
+2 −2 native/src/seal/util/rns.cpp
+1 −1 native/src/seal/util/uintarithmod.cpp
+8 −8 native/src/seal/util/uintarithsmallmod.h
+8 −4 native/src/seal/util/ztools.cpp
+6 −2 native/src/seal/util/ztools.h
+14 −14 native/src/seal/valcheck.h
+25 −5 native/tests/CMakeLists.txt
+6 −0 native/tests/seal/modulus.cpp
+6 −2 native/tests/seal/serialization.cpp
+13 −13 native/tests/seal/util/common.cpp
+4 −1 native/tests/seal/util/rns.cpp
+24 −9 pipelines/android.yml
+2 −10 pipelines/jobs.yml
+7 −0 pipelines/nuget.yml
+1 −1 pipelines/pipeline-CI-Debug-Android.yml
+1 −1 pipelines/pipeline-CI-Debug-iOS.yml
+38 −11 pipelines/windows.yml
+1 −0 pkgconfig/seal.pc.in
+1 −0 pkgconfig/seal_shared.pc.in
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# include directories
include_dirs = [py_include_dir, './pybind11/include', './SEAL/native/src', './SEAL/build/native/src']
# library path
extra_objects = ['./SEAL/build/lib/libseal-3.6.a']
extra_objects = ['./SEAL/build/lib/libseal-3.7.a']
# available wrapper: src/wrapper.cpp, src/wrapper_with_pickle.cpp
wrapper_file = 'src/wrapper.cpp'

Expand Down
6 changes: 3 additions & 3 deletions src/wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ PYBIND11_MODULE(seal, m)
.def("mod_switch_to_next_inplace", [](Evaluator &evaluator, Ciphertext &encrypted){
evaluator.mod_switch_to_next_inplace(encrypted);
})
.def("mod_switch_to_next_inplace", py::overload_cast<Plaintext &>(&Evaluator::mod_switch_to_next_inplace))
.def("mod_switch_to_next_inplace", py::overload_cast<Plaintext &>(&Evaluator::mod_switch_to_next_inplace, py::const_))
.def("mod_switch_to_next", [](Evaluator &evaluator, const Plaintext &plain){
Plaintext destination;
evaluator.mod_switch_to_next(plain, destination);
Expand All @@ -420,7 +420,7 @@ PYBIND11_MODULE(seal, m)
evaluator.mod_switch_to(encrypted, parms_id, destination);
return destination;
})
.def("mod_switch_to_inplace", py::overload_cast<Plaintext &, parms_id_type>(&Evaluator::mod_switch_to_inplace))
.def("mod_switch_to_inplace", py::overload_cast<Plaintext &, parms_id_type>(&Evaluator::mod_switch_to_inplace, py::const_))
.def("mod_switch_to", [](Evaluator &evaluator, const Plaintext &plain, parms_id_type parms_id){
Plaintext destination;
evaluator.mod_switch_to(plain, parms_id, destination);
Expand Down Expand Up @@ -483,7 +483,7 @@ PYBIND11_MODULE(seal, m)
evaluator.transform_to_ntt(plain, parms_id, destination_ntt);
return destination_ntt;
})
.def("transform_to_ntt_inplace", py::overload_cast<Ciphertext &>(&Evaluator::transform_to_ntt_inplace))
.def("transform_to_ntt_inplace", py::overload_cast<Ciphertext &>(&Evaluator::transform_to_ntt_inplace, py::const_))
.def("transform_to_ntt", [](Evaluator &evaluator, const Ciphertext &encrypted){
Ciphertext destination_ntt;
evaluator.transform_to_ntt(encrypted, destination_ntt);
Expand Down