12345678910111213141516171819202122 |
- #ifndef __CLIENTS_HPP__
- #define __CLIENTS_HPP__
- struct IngClient {
- sgx_aes_gcm_128bit_key_t key;
- // Add other relevant ingestion client state like
- // public priority and last epoch here.
- };
- struct StgClient{
- sgx_aes_gcm_128bit_key_t key;
- clientid_t my_id;
- clientid_t *priv_friends;
- uint8_t iv[SGX_AESGCM_IV_SIZE];
- };
- bool authenticateClient(unsigned char *auth_message,
- const sgx_aes_gcm_128bit_key_t *ckey);
- #endif
|