Skip to content

Commit

Permalink
bump version to v0.4.0.dev240517 (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
6fj authored May 17, 2024
1 parent 79d6e81 commit 0519556
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 2 additions & 4 deletions psi/seal_pir/seal_mpir_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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}) //
);

Expand Down
4 changes: 2 additions & 2 deletions psi/seal_pir/seal_pir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ std::vector<seal::Ciphertext> SealPirServer::ExpandQuery(
std::vector<seal::Ciphertext> 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);

Expand Down Expand Up @@ -690,7 +689,8 @@ std::vector<seal::Ciphertext> 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],
Expand Down
2 changes: 1 addition & 1 deletion psi/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 0519556

Please sign in to comment.