|
@@ -20,7 +20,7 @@ public:
|
|
|
~SPIR_Client();
|
|
|
|
|
|
// preprocessing
|
|
|
- string preproc_PIRs(uint32_t num_pirs); // returns the string to send to the server
|
|
|
+ string preproc(uint32_t num_pirs); // returns the string to send to the server
|
|
|
|
|
|
void preproc_finish(const string &server_preproc);
|
|
|
|
|
@@ -30,7 +30,7 @@ public:
|
|
|
// process the server's response to yield the server's db[(idx + rot)%N] + blind
|
|
|
// where N=2^r, idx is provided by the client above, and
|
|
|
// db, rot, and blind are provided by the server below
|
|
|
- SPIR::DBEntry process_reply(const string &server_reply);
|
|
|
+ SPIR::DBEntry query_finish(const string &server_reply);
|
|
|
|
|
|
private:
|
|
|
void *client;
|
|
@@ -46,12 +46,12 @@ public:
|
|
|
~SPIR_Server();
|
|
|
|
|
|
// preprocessing
|
|
|
- string preproc_PIRs(const string &client_preproc); // returns the string to reply to the client
|
|
|
+ string preproc_process(const string &client_preproc); // returns the string to reply to the client
|
|
|
|
|
|
// SPIR query on the given database of N=2^r records, each of type DBEntry
|
|
|
// rotate the database by rot, and blind each entry in the database additively with blind
|
|
|
// returns the string to reply to the client
|
|
|
- string process_query(const string &client_query, const SPIR::DBEntry *db,
|
|
|
+ string query_process(const string &client_query, const SPIR::DBEntry *db,
|
|
|
size_t rot, SPIR::DBEntry blind);
|
|
|
|
|
|
private:
|