LA.h 582 B

123456789101112131415161718192021
  1. //
  2. // Created by miti on 2020-01-01.
  3. //
  4. #ifndef DECRYPTORAPP_LA_H
  5. #define DECRYPTORAPP_LA_H
  6. #include "ProtobufMessageRW.h"
  7. #include "ProtobufLAMessages.pb.h"
  8. class LA {
  9. uint32_t enclave_id;
  10. ProtobufMessageRW protobufReaderWriter;
  11. uint32_t process_protobuf_dh_msg2_generate_protobuf_dh_msg3( protobuf_sgx_dh_msg2_t& protobuf_msg2, protobuf_sgx_dh_msg3_t& protobuf_msg3);
  12. uint32_t generate_protobuf_dh_msg1( protobuf_sgx_dh_msg1_t& protobuf_msg1);
  13. public:
  14. uint32_t conduct_la(int fd);
  15. void set_enclave_id(uint32_t given_eid);
  16. };
  17. #endif //DECRYPTORAPP_LA_H