client.hpp 454 B

12345678910111213141516171819202122
  1. #ifndef __CLIENTS_HPP__
  2. #define __CLIENTS_HPP__
  3. struct IngClient {
  4. sgx_aes_gcm_128bit_key_t key;
  5. // Add other relevant ingestion client state like
  6. // public priority and last epoch here.
  7. };
  8. struct StgClient{
  9. sgx_aes_gcm_128bit_key_t key;
  10. clientid_t my_id;
  11. clientid_t *priv_friends;
  12. uint8_t iv[SGX_AESGCM_IV_SIZE];
  13. };
  14. bool authenticateClient(unsigned char *auth_message,
  15. const sgx_aes_gcm_128bit_key_t *ckey);
  16. #endif