PostLAMessaging.h 814 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // Created by miti on 2020-01-01.
  3. //
  4. #ifndef DECRYPTORAPP_POSTLAMESSAGING_H
  5. #define DECRYPTORAPP_POSTLAMESSAGING_H
  6. #include "ProtobufMessageRW.h"
  7. #include "PostLAMessages.pb.h"
  8. #include <string>
  9. #include <vector>
  10. class PostLAMessaging {
  11. uint32_t enclave_id;
  12. int verifier_fd;
  13. ProtobufMessageRW targetChannelData;
  14. ProtobufMessageRW targetChannelHeaders;
  15. int process_target_data_msg(extension_to_decryptor_msg& incomingMsg, decryptor_to_extension_msg& outgoingMsg);
  16. public:
  17. int read_and_write_header();
  18. int receive_token_from_verifier();
  19. int receive_decrypt_client_data_from_target();
  20. void set_enclave_id(int given_id);
  21. void set_verifier_fd(int fd);
  22. void set_target_data_fd(int fd);
  23. void set_target_headers_fd(int fd);
  24. };
  25. #endif //DECRYPTORAPP_POSTLAMESSAGING_H