Browse Source

Forgot to update the rest of the code

Andrew Beams 3 years ago
parent
commit
4999ee141c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pir.hpp
  2. 1 1
      pir_client.cpp

+ 1 - 1
pir.hpp

@@ -62,7 +62,7 @@ void vector_to_plaintext(const std::vector<std::uint64_t> &coeffs, seal::Plainte
 std::vector<std::uint64_t> compute_indices(std::uint64_t desiredIndex,
                                            std::vector<std::uint64_t> nvec);
 
-uint64_t InvertMod(uint64_t m, const seal::Modulus& mod);
+uint64_t invert_mod(uint64_t m, const seal::Modulus& mod);
 
 // Serialize and deserialize ciphertexts to send them over the network
 PirQuery deserialize_query(std::uint32_t d, uint32_t count, std::string s, std::uint32_t len_ciphertext,

+ 1 - 1
pir_client.cpp

@@ -59,7 +59,7 @@ PirQuery PIRClient::generate_query(uint64_t desiredIndex) {
                 uint64_t log_total = ceil(log2(total));
 
                 cout << "Client: Inverting " << pow(2, log_total) << endl;
-                pt[real_index] = InvertMod(pow(2, log_total), params_.plain_modulus());
+                pt[real_index] = invert_mod(pow(2, log_total), params_.plain_modulus());
             }
             Ciphertext dest;
             encryptor_->encrypt(pt, dest);