1234567891011121314151617181920 |
- #ifndef __CLIENT_HPP__
- #define __CLIENT_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;
- std::vector<clientid_t> token_friends;
- uint8_t iv[SGX_AESGCM_IV_SIZE];
- };
- bool authenticateClient(unsigned char *auth_message,
- const sgx_aes_gcm_128bit_key_t *ckey);
- #endif
|