okvClient.h 561 B

12345678910111213141516171819
  1. #ifndef _OKVCLIENT
  2. #define _OKVCLIENT
  3. typedef __int128 int128_t;
  4. typedef unsigned __int128 uint128_t;
  5. void initializeCipher();
  6. //prepare a querys
  7. uint128_t prepQuery(int pos, int dbSize, uint8_t *dataToWrite, int dataSize, int *querySize, uint8_t **dpfQueryA, uint8_t **dpfQueryB);
  8. //prepare an audit response for most recent query
  9. void prepAudit(uint8_t *seed, uint8_t *outputsA, uint8_t *outputsB, uint8_t *dpfQueryA, uint8_t *dpfQueryB);
  10. void getCipher(int isLeader, int i, uint8_t *array);
  11. void putCipher(int isLeader, int i, uint8_t *array);
  12. #endif