LA.h 747 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Created by miti on 22/07/19.
  3. //
  4. #ifndef DECRYPTORAPP_LA_H
  5. #define DECRYPTORAPP_LA_H
  6. #include "sgx_trts.h"
  7. #include "sgx_utils.h"
  8. #include "sgx_eid.h"
  9. #include "error_codes.h"
  10. #include "sgx_ecp_types.h"
  11. #include "dh_session_protocol.h"
  12. #include "sgx_dh.h"
  13. #include "sgx_tcrypto.h"
  14. #include "../Decryptor/Decryptor_t.h"
  15. #include "string.h"
  16. class LA
  17. {
  18. private:
  19. static dh_session_t global_session_info;
  20. public:
  21. static uint32_t session_request(sgx_dh_msg1_t *dh_msg1, uint32_t *session_id);
  22. static uint32_t exchange_report(sgx_dh_msg2_t *dh_msg2, sgx_dh_msg3_t *dh_msg3, uint32_t* session_id,
  23. sgx_key_128bit_t* dh_aek,
  24. sgx_dh_session_enclave_identity_t* initiator_identity);
  25. };
  26. #endif //DECRYPTORAPP_LA_H