Skip to content

Commit

Permalink
SEAL 3.6.5 (#297)
Browse files Browse the repository at this point in the history
* SEAL 3.6.5
  • Loading branch information
bcebere authored May 20, 2021
1 parent 7cf17a0 commit 02697d4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/bazel_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- name: Prepare ENV
run: |
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion cmake/seal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(SEAL_USE_INTEL_HEXL ON)
FetchContent_Declare(
com_microsoft_seal
GIT_REPOSITORY https://github.com/microsoft/SEAL
GIT_TAG v3.6.4
GIT_TAG 97e4b8ddbc1105fe8338f8c18ff3cafcba686266 #v3.6.5
)
FetchContent_MakeAvailable(com_microsoft_seal)

Expand Down
6 changes: 3 additions & 3 deletions tenseal/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def tenseal_deps():
http_archive(
name = "com_microsoft_seal",
build_file = "//third_party:seal.BUILD",
strip_prefix = "SEAL-3.6.4",
sha256 = "7392574fe3b757d5ced8cc973b23a7b69be0cd35b6e778b3c2447598e9ece5b3",
urls = ["https://github.com/microsoft/SEAL/archive/v3.6.4.tar.gz"],
strip_prefix = "SEAL-3.6.5",
sha256 = "77bfcb4a8b785206c419cdf7aff8c200250691518eeddc958f874d1f567b2872",
urls = ["https://github.com/microsoft/SEAL/archive/v3.6.5.tar.gz"],
)

if "com_xtensorstack_xtensor" not in native.existing_rules():
Expand Down
4 changes: 2 additions & 2 deletions tenseal/sealapi/sealapi_encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ void bind_seal_encoder_decoder(pybind11::module &m) {
.def(py::init<const SEALContext &>())
.def("encode",
py::overload_cast<const std::vector<std::uint64_t> &, Plaintext &>(
&BatchEncoder::encode))
&BatchEncoder::encode, py::const_))
.def("encode",
py::overload_cast<const std::vector<std::int64_t> &, Plaintext &>(
&BatchEncoder::encode))
&BatchEncoder::encode, py::const_))
.def("decode_uint64",
[](BatchEncoder &b, const Plaintext &plain) {
std::vector<std::uint64_t> destination;
Expand Down
16 changes: 8 additions & 8 deletions tenseal/sealapi/sealapi_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ void bind_seal_evaluator(pybind11::module &m) {
Plaintext &dst) { e.transform_to_ntt(in, parms_id, dst); })
.def("mod_switch_to_next",
py::overload_cast<const Plaintext &, Plaintext &>(
&Evaluator::mod_switch_to_next))
&Evaluator::mod_switch_to_next, py::const_))
.def("mod_switch_to_next_inplace",
py::overload_cast<Plaintext &>(
&Evaluator::mod_switch_to_next_inplace))
&Evaluator::mod_switch_to_next_inplace, py::const_))
.def("mod_switch_to_inplace",
py::overload_cast<Plaintext &, parms_id_type>(
&Evaluator::mod_switch_to_inplace))
&Evaluator::mod_switch_to_inplace, py::const_))
.def("mod_switch_to_inplace",
[](Evaluator &e, Ciphertext &enc, parms_id_type parms_id) {
e.mod_switch_to_inplace(enc, parms_id);
Expand All @@ -110,7 +110,7 @@ void bind_seal_evaluator(pybind11::module &m) {
Ciphertext &dst) { e.mod_switch_to(enc, parms_id, dst); })
.def("mod_switch_to",
py::overload_cast<const Plaintext &, parms_id_type, Plaintext &>(
&Evaluator::mod_switch_to))
&Evaluator::mod_switch_to, py::const_))

.def("rescale_to_next",
[](Evaluator &e, const Ciphertext &enc, Ciphertext &dst) {
Expand All @@ -131,16 +131,16 @@ void bind_seal_evaluator(pybind11::module &m) {

.def("transform_to_ntt_inplace",
py::overload_cast<Ciphertext &>(
&Evaluator::transform_to_ntt_inplace))
&Evaluator::transform_to_ntt_inplace, py::const_))
.def("transform_to_ntt",
py::overload_cast<const Ciphertext &, Ciphertext &>(
&Evaluator::transform_to_ntt))
&Evaluator::transform_to_ntt, py::const_))
.def("transform_from_ntt_inplace",
py::overload_cast<Ciphertext &>(
&Evaluator::transform_from_ntt_inplace))
&Evaluator::transform_from_ntt_inplace, py::const_))
.def("transform_from_ntt",
py::overload_cast<const Ciphertext &, Ciphertext &>(
&Evaluator::transform_from_ntt))
&Evaluator::transform_from_ntt, py::const_))

.def("apply_galois_inplace",
[](Evaluator &e, Ciphertext &encrypted, std::uint32_t galois_elt,
Expand Down
2 changes: 1 addition & 1 deletion tenseal/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.3"
__version__ = "0.3.4"

0 comments on commit 02697d4

Please sign in to comment.