protobufSgxTransformsInitiator.h 897 B

123456789101112131415161718192021222324
  1. //
  2. // Created by miti on 21/07/19.
  3. //
  4. #ifndef DECRYPTORAPP_PROTOBUFSGXTRANSFORMSINITIATOR_H
  5. #define DECRYPTORAPP_PROTOBUFSGXTRANSFORMSINITIATOR_H
  6. #include "protobufSgxTransformsHelper.h"
  7. #define __STDC_FORMAT_MACROS
  8. #include <inttypes.h>
  9. #include <stdio.h>
  10. #include "sgx_report.h"
  11. #include "sgx_eid.h"
  12. #include "sgx_dh.h"
  13. namespace protobufSgxTransformsInitiator {
  14. using namespace protobufSgxTransformsHelper;
  15. void encode_msg1_to_protobuf( protobuf_sgx_dh_msg1_t& protobuf_dhmsg1, sgx_dh_msg1_t* native_dhmsg1);
  16. void encode_msg3_to_protobuf(protobuf_sgx_dh_msg3_t& protobuf_dhmsg3, sgx_dh_msg3_t* native_dhmsg3);
  17. int decode_msg2_from_protobuf(protobuf_sgx_dh_msg2_t& protobuf_dhmsg2, sgx_dh_msg2_t* native_dhmsg2);
  18. int print_initialized_msg1( protobuf_sgx_dh_msg1_t& protobuf_dhmsg1, sgx_dh_msg1_t* native_dhmsg1);
  19. };
  20. #endif //DECRYPTORAPP_PROTOBUFSGXTRANSFORMSINITIATOR_H