messages.proto 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. package aesm.message;
  2. message Request{
  3. message InitQuoteRequest{
  4. optional uint32 timeout = 9;
  5. }
  6. message GetQuoteRequest{
  7. required bytes report = 1;
  8. required uint32 quote_type = 2;
  9. required bytes spid = 3;
  10. optional bytes nonce = 4;
  11. optional bytes sig_rl = 5;
  12. required uint32 buf_size = 6;
  13. optional bool qe_report = 7;
  14. optional uint32 timeout = 9;
  15. }
  16. message GetLaunchTokenRequest{
  17. required bytes mr_enclave = 1;
  18. required bytes mr_signer = 2;
  19. required bytes se_attributes = 3;
  20. optional uint32 timeout = 9;
  21. }
  22. message ReportAttestationErrorRequest{
  23. required bytes platform_info = 1;
  24. required uint32 attestation_error_code = 2;
  25. required uint32 update_info_size =3;
  26. optional uint32 timeout = 9;
  27. }
  28. //private API
  29. message CreateSessionRequest{
  30. required uint32 dh_msg1_size = 1;
  31. optional uint32 timeout = 9;
  32. }
  33. message InvokeServiceRequest{
  34. required bytes pse_message = 1;
  35. required uint32 pse_resp_size = 2;
  36. optional uint32 timeout = 9;
  37. }
  38. message ExchangeReportRequest{
  39. required uint32 session_id = 1;
  40. required bytes se_dh_msg2 = 2;
  41. required uint32 se_dh_msg3_size = 3;
  42. optional uint32 timeout = 9;
  43. }
  44. message CloseSessionRequest{
  45. required uint32 session_id = 1;
  46. optional uint32 timeout = 9;
  47. }
  48. message GetPsCapRequest{
  49. optional uint32 timeout = 9;
  50. }
  51. optional InitQuoteRequest initQuoteReq = 1;
  52. optional GetQuoteRequest getQuoteReq = 2;
  53. optional GetLaunchTokenRequest getLicTokenReq = 3;
  54. optional ReportAttestationErrorRequest reportErrReq = 4;
  55. optional CreateSessionRequest createSessionReq = 5;
  56. optional InvokeServiceRequest invokeServiceReq = 6;
  57. optional ExchangeReportRequest exchangeReportReq = 7;
  58. optional CloseSessionRequest closeSessionReq = 8;
  59. optional GetPsCapRequest getPsCapReq = 9;
  60. }
  61. message Response{
  62. message InitQuoteResponse{
  63. required uint32 errorCode = 1 [default = 1];
  64. optional bytes targetInfo = 2;
  65. optional bytes gid = 3;
  66. }
  67. message GetQuoteResponse{
  68. required uint32 errorCode = 1 [default = 1];
  69. optional bytes quote = 2;
  70. optional bytes qe_report = 3;
  71. }
  72. message GetLaunchTokenResponse{
  73. required uint32 errorCode = 1 [default = 1];
  74. optional bytes token = 2;
  75. }
  76. message ReportAttestationErrorResponse{
  77. required uint32 errorCode = 1 [default = 1];
  78. optional bytes platform_update_info = 2;
  79. }
  80. //private API
  81. message CreateSessionResponse{
  82. required uint32 errorCode = 1 [default = 1];
  83. optional uint32 session_id = 2;
  84. optional bytes se_dh_msg1 = 3;
  85. }
  86. message InvokeServiceResponse{
  87. required uint32 errorCode = 1 [default = 1];
  88. optional bytes pse_message = 2;
  89. }
  90. message ExchangeReportResponse{
  91. required uint32 errorCode = 1 [default = 1];
  92. optional bytes se_dh_msg3 = 2;
  93. }
  94. message CloseSessionResponse{
  95. required uint32 errorCode = 1 [default = 1];
  96. }
  97. message GetPsCapResponse{
  98. required uint32 errorCode = 1 [default = 1];
  99. optional uint64 ps_cap = 2;
  100. }
  101. optional InitQuoteResponse initQuoteRes = 1;
  102. optional GetQuoteResponse getQuoteRes = 2;
  103. optional GetLaunchTokenResponse getLicTokenRes = 3;
  104. optional ReportAttestationErrorResponse reportErrRes = 4;
  105. optional CreateSessionResponse createSessionRes = 5;
  106. optional InvokeServiceResponse invokeServiceRes = 6;
  107. optional ExchangeReportResponse exchangeReportRes = 7;
  108. optional CloseSessionResponse closeSessionRes = 8;
  109. optional GetPsCapResponse getPsCapRes = 9;
  110. }