Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Commit

Permalink
fix all problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
sualehasif authored Aug 2, 2022
1 parent 18ee6bc commit f906a71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions pir/fast_pir/fast_pir_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ class FastPIRClient {
using pir_answer_t = FastPIRAnswer;
using pir_map = std::map<pir_index_t, keys>;

// TODO: fix this absolute mess of initializers???

FastPIRClient() : FastPIRClient(create_context_params()) {
ASPHR_LOG_INFO("Creating FastPIRClient.", from, "base");
}
Expand Down Expand Up @@ -161,19 +159,17 @@ class FastPIRClient {
}

private:
// because we "batch" PIR encryption together, we need to know the keypair
// corresponding to each index
seal::SEALContext sc;
seal::BatchEncoder batch_encoder;
// number of slots in the plaintext
const size_t seal_slot_count;
// maps index to keys
seal::Evaluator evaluator;

// because we "batch" PIR encryption together, we need to know the keypair
// corresponding to each index.
// A Map (index -> keypair)
pir_map keys_map;

// create maps mapping indices to keys

auto deserialize_secret_key(seal::SEALContext sc, string secret_key)
-> seal::SecretKey {
auto s_stream = std::stringstream(secret_key);
Expand Down
2 changes: 1 addition & 1 deletion schema/server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ message GetAsyncInvitationsInfo {
message GetAsyncInvitationsResponse {
repeated bytes invitations = 1;
repeated bytes invitation_public_key = 2;
}
}

0 comments on commit f906a71

Please sign in to comment.