From 0519556e5ee2d22eecac116e82f6e766ed735af6 Mon Sep 17 00:00:00 2001 From: Jun FENG <99384777+6fj@users.noreply.github.com> Date: Fri, 17 May 2024 13:36:35 +0800 Subject: [PATCH] bump version to v0.4.0.dev240517 (#130) --- RELEASE.md | 3 +++ psi/seal_pir/seal_mpir_test.cc | 6 ++---- psi/seal_pir/seal_pir.cc | 4 ++-- psi/version.h | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index b8e5a16..18d351e 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -5,6 +5,9 @@ > - `[API]` prefix for API changes. > - `[Improvement]` prefix for implementation improvement. +## v0.4.0.dev240517 +- [Improvement] upgrade yacl to 0.4.5b0. + ## v0.4.0.dev240514 - [API] add entrypoint for docker file. - [API] allow passing config JSON directly to main. diff --git a/psi/seal_pir/seal_mpir_test.cc b/psi/seal_pir/seal_mpir_test.cc index 38d4453..a7a7a79 100644 --- a/psi/seal_pir/seal_mpir_test.cc +++ b/psi/seal_pir/seal_mpir_test.cc @@ -195,12 +195,10 @@ INSTANTIATE_TEST_SUITE_P( TestParams{64, 10000}, // element size default 288B TestParams{64, 10000, 288, 8192}, - TestParams{64, 10000, 20}, - TestParams{64, 10000, 20, 8192}, + TestParams{64, 10000, 20}, TestParams{64, 10000, 20, 8192}, // large data num - TestParams{64, 1 << 20, 20}, - TestParams{64, 1 << 21, 20}, + TestParams{64, 1 << 20, 20}, TestParams{64, 1 << 21, 20}, TestParams{64, 1 << 22, 20}) // ); diff --git a/psi/seal_pir/seal_pir.cc b/psi/seal_pir/seal_pir.cc index 94bd993..73b960e 100644 --- a/psi/seal_pir/seal_pir.cc +++ b/psi/seal_pir/seal_pir.cc @@ -532,7 +532,6 @@ std::vector SealPirServer::ExpandQuery( std::vector results2(results.size() << 1); seal::Plaintext two("2"); - int index_raw = (n << 1) - (1 << (logm - 1)); int index = (index_raw * galois_elts[logm - 1]) % (n << 1); @@ -690,7 +689,8 @@ std::vector SealPirServer::GenerateReply( seal::Ciphertext temp; for (j += 1; j < n_i; j++) { if ((*cur)[k + j * product].is_zero()) { - // SPDLOG_INFO("cur[{}] is zero, k:{}, j:{}", (k + j * product), k, j); + // SPDLOG_INFO("cur[{}] is zero, k:{}, j:{}", (k + j * product), k, + // j); continue; } evaluator_->multiply_plain(expanded_query[j], (*cur)[k + j * product], diff --git a/psi/version.h b/psi/version.h index a229f67..373379c 100644 --- a/psi/version.h +++ b/psi/version.h @@ -17,4 +17,4 @@ #define PSI_VERSION_MAJOR 0 #define PSI_VERSION_MINOR 4 #define PSI_VERSION_PATCH 0 -#define PSI_DEV_IDENTIFIER ".dev240514" +#define PSI_DEV_IDENTIFIER ".dev240517"