ProtobufLAMessages.pb.cpp 99 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: ProtobufLAMessages.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "ProtobufLAMessages.pb.h"
  5. #include <algorithm>
  6. #include <google/protobuf/stubs/common.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
  11. // @@protoc_insertion_point(includes)
  12. void protobuf_ShutdownFile_ProtobufLAMessages_2eproto() {
  13. delete protobuf_sgx_attributes_t::default_instance_;
  14. delete protobuf_sgx_ec256_public_t::default_instance_;
  15. delete protobuf_sgx_report_body_t::default_instance_;
  16. delete protobuf_sgx_report_t::default_instance_;
  17. delete protobuf_sgx_target_info_t::default_instance_;
  18. delete protobuf_sgx_dh_msg1_t::default_instance_;
  19. delete protobuf_sgx_dh_msg2_t::default_instance_;
  20. delete protobuf_sgx_dh_msg3_body_t::default_instance_;
  21. delete protobuf_sgx_dh_msg3_t::default_instance_;
  22. }
  23. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  24. void protobuf_AddDesc_ProtobufLAMessages_2eproto_impl() {
  25. GOOGLE_PROTOBUF_VERIFY_VERSION;
  26. #else
  27. void protobuf_AddDesc_ProtobufLAMessages_2eproto() {
  28. static bool already_here = false;
  29. if (already_here) return;
  30. already_here = true;
  31. GOOGLE_PROTOBUF_VERIFY_VERSION;
  32. #endif
  33. protobuf_sgx_attributes_t::default_instance_ = new protobuf_sgx_attributes_t();
  34. protobuf_sgx_ec256_public_t::default_instance_ = new protobuf_sgx_ec256_public_t();
  35. protobuf_sgx_report_body_t::default_instance_ = new protobuf_sgx_report_body_t();
  36. protobuf_sgx_report_t::default_instance_ = new protobuf_sgx_report_t();
  37. protobuf_sgx_target_info_t::default_instance_ = new protobuf_sgx_target_info_t();
  38. protobuf_sgx_dh_msg1_t::default_instance_ = new protobuf_sgx_dh_msg1_t();
  39. protobuf_sgx_dh_msg2_t::default_instance_ = new protobuf_sgx_dh_msg2_t();
  40. protobuf_sgx_dh_msg3_body_t::default_instance_ = new protobuf_sgx_dh_msg3_body_t();
  41. protobuf_sgx_dh_msg3_t::default_instance_ = new protobuf_sgx_dh_msg3_t();
  42. protobuf_sgx_attributes_t::default_instance_->InitAsDefaultInstance();
  43. protobuf_sgx_ec256_public_t::default_instance_->InitAsDefaultInstance();
  44. protobuf_sgx_report_body_t::default_instance_->InitAsDefaultInstance();
  45. protobuf_sgx_report_t::default_instance_->InitAsDefaultInstance();
  46. protobuf_sgx_target_info_t::default_instance_->InitAsDefaultInstance();
  47. protobuf_sgx_dh_msg1_t::default_instance_->InitAsDefaultInstance();
  48. protobuf_sgx_dh_msg2_t::default_instance_->InitAsDefaultInstance();
  49. protobuf_sgx_dh_msg3_body_t::default_instance_->InitAsDefaultInstance();
  50. protobuf_sgx_dh_msg3_t::default_instance_->InitAsDefaultInstance();
  51. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ProtobufLAMessages_2eproto);
  52. }
  53. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  54. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_ProtobufLAMessages_2eproto_once_);
  55. void protobuf_AddDesc_ProtobufLAMessages_2eproto() {
  56. ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_ProtobufLAMessages_2eproto_once_,
  57. &protobuf_AddDesc_ProtobufLAMessages_2eproto_impl);
  58. }
  59. #else
  60. // Force AddDescriptors() to be called at static initialization time.
  61. struct StaticDescriptorInitializer_ProtobufLAMessages_2eproto {
  62. StaticDescriptorInitializer_ProtobufLAMessages_2eproto() {
  63. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  64. }
  65. } static_descriptor_initializer_ProtobufLAMessages_2eproto_;
  66. #endif
  67. // ===================================================================
  68. #ifndef _MSC_VER
  69. const int protobuf_sgx_attributes_t::kFlagsFieldNumber;
  70. const int protobuf_sgx_attributes_t::kXfrmFieldNumber;
  71. #endif // !_MSC_VER
  72. protobuf_sgx_attributes_t::protobuf_sgx_attributes_t()
  73. : ::google::protobuf::MessageLite() {
  74. SharedCtor();
  75. // @@protoc_insertion_point(constructor:protobuf_sgx_attributes_t)
  76. }
  77. void protobuf_sgx_attributes_t::InitAsDefaultInstance() {
  78. }
  79. protobuf_sgx_attributes_t::protobuf_sgx_attributes_t(const protobuf_sgx_attributes_t& from)
  80. : ::google::protobuf::MessageLite() {
  81. SharedCtor();
  82. MergeFrom(from);
  83. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_attributes_t)
  84. }
  85. void protobuf_sgx_attributes_t::SharedCtor() {
  86. _cached_size_ = 0;
  87. flags_ = GOOGLE_ULONGLONG(0);
  88. xfrm_ = GOOGLE_ULONGLONG(0);
  89. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  90. }
  91. protobuf_sgx_attributes_t::~protobuf_sgx_attributes_t() {
  92. // @@protoc_insertion_point(destructor:protobuf_sgx_attributes_t)
  93. SharedDtor();
  94. }
  95. void protobuf_sgx_attributes_t::SharedDtor() {
  96. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  97. if (this != &default_instance()) {
  98. #else
  99. if (this != default_instance_) {
  100. #endif
  101. }
  102. }
  103. void protobuf_sgx_attributes_t::SetCachedSize(int size) const {
  104. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  105. _cached_size_ = size;
  106. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  107. }
  108. const protobuf_sgx_attributes_t& protobuf_sgx_attributes_t::default_instance() {
  109. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  110. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  111. #else
  112. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  113. #endif
  114. return *default_instance_;
  115. }
  116. protobuf_sgx_attributes_t* protobuf_sgx_attributes_t::default_instance_ = NULL;
  117. protobuf_sgx_attributes_t* protobuf_sgx_attributes_t::New() const {
  118. return new protobuf_sgx_attributes_t;
  119. }
  120. void protobuf_sgx_attributes_t::Clear() {
  121. #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
  122. &reinterpret_cast<protobuf_sgx_attributes_t*>(16)->f) - \
  123. reinterpret_cast<char*>(16))
  124. #define ZR_(first, last) do { \
  125. size_t f = OFFSET_OF_FIELD_(first); \
  126. size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
  127. ::memset(&first, 0, n); \
  128. } while (0)
  129. ZR_(flags_, xfrm_);
  130. #undef OFFSET_OF_FIELD_
  131. #undef ZR_
  132. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  133. mutable_unknown_fields()->clear();
  134. }
  135. bool protobuf_sgx_attributes_t::MergePartialFromCodedStream(
  136. ::google::protobuf::io::CodedInputStream* input) {
  137. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  138. ::google::protobuf::uint32 tag;
  139. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  140. mutable_unknown_fields());
  141. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  142. &unknown_fields_string);
  143. // @@protoc_insertion_point(parse_start:protobuf_sgx_attributes_t)
  144. for (;;) {
  145. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  146. tag = p.first;
  147. if (!p.second) goto handle_unusual;
  148. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  149. // required uint64 flags = 1;
  150. case 1: {
  151. if (tag == 8) {
  152. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  153. ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
  154. input, &flags_)));
  155. set_has_flags();
  156. } else {
  157. goto handle_unusual;
  158. }
  159. if (input->ExpectTag(16)) goto parse_xfrm;
  160. break;
  161. }
  162. // required uint64 xfrm = 2;
  163. case 2: {
  164. if (tag == 16) {
  165. parse_xfrm:
  166. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  167. ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
  168. input, &xfrm_)));
  169. set_has_xfrm();
  170. } else {
  171. goto handle_unusual;
  172. }
  173. if (input->ExpectAtEnd()) goto success;
  174. break;
  175. }
  176. default: {
  177. handle_unusual:
  178. if (tag == 0 ||
  179. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  180. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  181. goto success;
  182. }
  183. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  184. input, tag, &unknown_fields_stream));
  185. break;
  186. }
  187. }
  188. }
  189. success:
  190. // @@protoc_insertion_point(parse_success:protobuf_sgx_attributes_t)
  191. return true;
  192. failure:
  193. // @@protoc_insertion_point(parse_failure:protobuf_sgx_attributes_t)
  194. return false;
  195. #undef DO_
  196. }
  197. void protobuf_sgx_attributes_t::SerializeWithCachedSizes(
  198. ::google::protobuf::io::CodedOutputStream* output) const {
  199. // @@protoc_insertion_point(serialize_start:protobuf_sgx_attributes_t)
  200. // required uint64 flags = 1;
  201. if (has_flags()) {
  202. ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->flags(), output);
  203. }
  204. // required uint64 xfrm = 2;
  205. if (has_xfrm()) {
  206. ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->xfrm(), output);
  207. }
  208. output->WriteRaw(unknown_fields().data(),
  209. unknown_fields().size());
  210. // @@protoc_insertion_point(serialize_end:protobuf_sgx_attributes_t)
  211. }
  212. int protobuf_sgx_attributes_t::ByteSize() const {
  213. int total_size = 0;
  214. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  215. // required uint64 flags = 1;
  216. if (has_flags()) {
  217. total_size += 1 +
  218. ::google::protobuf::internal::WireFormatLite::UInt64Size(
  219. this->flags());
  220. }
  221. // required uint64 xfrm = 2;
  222. if (has_xfrm()) {
  223. total_size += 1 +
  224. ::google::protobuf::internal::WireFormatLite::UInt64Size(
  225. this->xfrm());
  226. }
  227. }
  228. total_size += unknown_fields().size();
  229. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  230. _cached_size_ = total_size;
  231. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  232. return total_size;
  233. }
  234. void protobuf_sgx_attributes_t::CheckTypeAndMergeFrom(
  235. const ::google::protobuf::MessageLite& from) {
  236. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_attributes_t*>(&from));
  237. }
  238. void protobuf_sgx_attributes_t::MergeFrom(const protobuf_sgx_attributes_t& from) {
  239. GOOGLE_CHECK_NE(&from, this);
  240. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  241. if (from.has_flags()) {
  242. set_flags(from.flags());
  243. }
  244. if (from.has_xfrm()) {
  245. set_xfrm(from.xfrm());
  246. }
  247. }
  248. mutable_unknown_fields()->append(from.unknown_fields());
  249. }
  250. void protobuf_sgx_attributes_t::CopyFrom(const protobuf_sgx_attributes_t& from) {
  251. if (&from == this) return;
  252. Clear();
  253. MergeFrom(from);
  254. }
  255. bool protobuf_sgx_attributes_t::IsInitialized() const {
  256. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  257. return true;
  258. }
  259. void protobuf_sgx_attributes_t::Swap(protobuf_sgx_attributes_t* other) {
  260. if (other != this) {
  261. std::swap(flags_, other->flags_);
  262. std::swap(xfrm_, other->xfrm_);
  263. std::swap(_has_bits_[0], other->_has_bits_[0]);
  264. _unknown_fields_.swap(other->_unknown_fields_);
  265. std::swap(_cached_size_, other->_cached_size_);
  266. }
  267. }
  268. ::std::string protobuf_sgx_attributes_t::GetTypeName() const {
  269. return "protobuf_sgx_attributes_t";
  270. }
  271. // ===================================================================
  272. #ifndef _MSC_VER
  273. const int protobuf_sgx_ec256_public_t::kGxFieldNumber;
  274. const int protobuf_sgx_ec256_public_t::kGyFieldNumber;
  275. #endif // !_MSC_VER
  276. protobuf_sgx_ec256_public_t::protobuf_sgx_ec256_public_t()
  277. : ::google::protobuf::MessageLite() {
  278. SharedCtor();
  279. // @@protoc_insertion_point(constructor:protobuf_sgx_ec256_public_t)
  280. }
  281. void protobuf_sgx_ec256_public_t::InitAsDefaultInstance() {
  282. }
  283. protobuf_sgx_ec256_public_t::protobuf_sgx_ec256_public_t(const protobuf_sgx_ec256_public_t& from)
  284. : ::google::protobuf::MessageLite() {
  285. SharedCtor();
  286. MergeFrom(from);
  287. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_ec256_public_t)
  288. }
  289. void protobuf_sgx_ec256_public_t::SharedCtor() {
  290. _cached_size_ = 0;
  291. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  292. }
  293. protobuf_sgx_ec256_public_t::~protobuf_sgx_ec256_public_t() {
  294. // @@protoc_insertion_point(destructor:protobuf_sgx_ec256_public_t)
  295. SharedDtor();
  296. }
  297. void protobuf_sgx_ec256_public_t::SharedDtor() {
  298. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  299. if (this != &default_instance()) {
  300. #else
  301. if (this != default_instance_) {
  302. #endif
  303. }
  304. }
  305. void protobuf_sgx_ec256_public_t::SetCachedSize(int size) const {
  306. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  307. _cached_size_ = size;
  308. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  309. }
  310. const protobuf_sgx_ec256_public_t& protobuf_sgx_ec256_public_t::default_instance() {
  311. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  312. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  313. #else
  314. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  315. #endif
  316. return *default_instance_;
  317. }
  318. protobuf_sgx_ec256_public_t* protobuf_sgx_ec256_public_t::default_instance_ = NULL;
  319. protobuf_sgx_ec256_public_t* protobuf_sgx_ec256_public_t::New() const {
  320. return new protobuf_sgx_ec256_public_t;
  321. }
  322. void protobuf_sgx_ec256_public_t::Clear() {
  323. gx_.Clear();
  324. gy_.Clear();
  325. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  326. mutable_unknown_fields()->clear();
  327. }
  328. bool protobuf_sgx_ec256_public_t::MergePartialFromCodedStream(
  329. ::google::protobuf::io::CodedInputStream* input) {
  330. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  331. ::google::protobuf::uint32 tag;
  332. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  333. mutable_unknown_fields());
  334. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  335. &unknown_fields_string);
  336. // @@protoc_insertion_point(parse_start:protobuf_sgx_ec256_public_t)
  337. for (;;) {
  338. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  339. tag = p.first;
  340. if (!p.second) goto handle_unusual;
  341. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  342. // repeated uint32 gx = 1 [packed = true];
  343. case 1: {
  344. if (tag == 10) {
  345. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  346. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  347. input, this->mutable_gx())));
  348. } else if (tag == 8) {
  349. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  350. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  351. 1, 10, input, this->mutable_gx())));
  352. } else {
  353. goto handle_unusual;
  354. }
  355. if (input->ExpectTag(18)) goto parse_gy;
  356. break;
  357. }
  358. // repeated uint32 gy = 2 [packed = true];
  359. case 2: {
  360. if (tag == 18) {
  361. parse_gy:
  362. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  363. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  364. input, this->mutable_gy())));
  365. } else if (tag == 16) {
  366. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  367. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  368. 1, 18, input, this->mutable_gy())));
  369. } else {
  370. goto handle_unusual;
  371. }
  372. if (input->ExpectAtEnd()) goto success;
  373. break;
  374. }
  375. default: {
  376. handle_unusual:
  377. if (tag == 0 ||
  378. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  379. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  380. goto success;
  381. }
  382. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  383. input, tag, &unknown_fields_stream));
  384. break;
  385. }
  386. }
  387. }
  388. success:
  389. // @@protoc_insertion_point(parse_success:protobuf_sgx_ec256_public_t)
  390. return true;
  391. failure:
  392. // @@protoc_insertion_point(parse_failure:protobuf_sgx_ec256_public_t)
  393. return false;
  394. #undef DO_
  395. }
  396. void protobuf_sgx_ec256_public_t::SerializeWithCachedSizes(
  397. ::google::protobuf::io::CodedOutputStream* output) const {
  398. // @@protoc_insertion_point(serialize_start:protobuf_sgx_ec256_public_t)
  399. // repeated uint32 gx = 1 [packed = true];
  400. if (this->gx_size() > 0) {
  401. ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  402. output->WriteVarint32(_gx_cached_byte_size_);
  403. }
  404. for (int i = 0; i < this->gx_size(); i++) {
  405. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  406. this->gx(i), output);
  407. }
  408. // repeated uint32 gy = 2 [packed = true];
  409. if (this->gy_size() > 0) {
  410. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  411. output->WriteVarint32(_gy_cached_byte_size_);
  412. }
  413. for (int i = 0; i < this->gy_size(); i++) {
  414. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  415. this->gy(i), output);
  416. }
  417. output->WriteRaw(unknown_fields().data(),
  418. unknown_fields().size());
  419. // @@protoc_insertion_point(serialize_end:protobuf_sgx_ec256_public_t)
  420. }
  421. int protobuf_sgx_ec256_public_t::ByteSize() const {
  422. int total_size = 0;
  423. // repeated uint32 gx = 1 [packed = true];
  424. {
  425. int data_size = 0;
  426. for (int i = 0; i < this->gx_size(); i++) {
  427. data_size += ::google::protobuf::internal::WireFormatLite::
  428. UInt32Size(this->gx(i));
  429. }
  430. if (data_size > 0) {
  431. total_size += 1 +
  432. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  433. }
  434. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  435. _gx_cached_byte_size_ = data_size;
  436. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  437. total_size += data_size;
  438. }
  439. // repeated uint32 gy = 2 [packed = true];
  440. {
  441. int data_size = 0;
  442. for (int i = 0; i < this->gy_size(); i++) {
  443. data_size += ::google::protobuf::internal::WireFormatLite::
  444. UInt32Size(this->gy(i));
  445. }
  446. if (data_size > 0) {
  447. total_size += 1 +
  448. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  449. }
  450. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  451. _gy_cached_byte_size_ = data_size;
  452. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  453. total_size += data_size;
  454. }
  455. total_size += unknown_fields().size();
  456. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  457. _cached_size_ = total_size;
  458. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  459. return total_size;
  460. }
  461. void protobuf_sgx_ec256_public_t::CheckTypeAndMergeFrom(
  462. const ::google::protobuf::MessageLite& from) {
  463. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_ec256_public_t*>(&from));
  464. }
  465. void protobuf_sgx_ec256_public_t::MergeFrom(const protobuf_sgx_ec256_public_t& from) {
  466. GOOGLE_CHECK_NE(&from, this);
  467. gx_.MergeFrom(from.gx_);
  468. gy_.MergeFrom(from.gy_);
  469. mutable_unknown_fields()->append(from.unknown_fields());
  470. }
  471. void protobuf_sgx_ec256_public_t::CopyFrom(const protobuf_sgx_ec256_public_t& from) {
  472. if (&from == this) return;
  473. Clear();
  474. MergeFrom(from);
  475. }
  476. bool protobuf_sgx_ec256_public_t::IsInitialized() const {
  477. return true;
  478. }
  479. void protobuf_sgx_ec256_public_t::Swap(protobuf_sgx_ec256_public_t* other) {
  480. if (other != this) {
  481. gx_.Swap(&other->gx_);
  482. gy_.Swap(&other->gy_);
  483. std::swap(_has_bits_[0], other->_has_bits_[0]);
  484. _unknown_fields_.swap(other->_unknown_fields_);
  485. std::swap(_cached_size_, other->_cached_size_);
  486. }
  487. }
  488. ::std::string protobuf_sgx_ec256_public_t::GetTypeName() const {
  489. return "protobuf_sgx_ec256_public_t";
  490. }
  491. // ===================================================================
  492. #ifndef _MSC_VER
  493. const int protobuf_sgx_report_body_t::kCpuSvnFieldNumber;
  494. const int protobuf_sgx_report_body_t::kMiscSelectFieldNumber;
  495. const int protobuf_sgx_report_body_t::kReserved1FieldNumber;
  496. const int protobuf_sgx_report_body_t::kAttributesFieldNumber;
  497. const int protobuf_sgx_report_body_t::kMrEnclaveFieldNumber;
  498. const int protobuf_sgx_report_body_t::kReserved2FieldNumber;
  499. const int protobuf_sgx_report_body_t::kMrSignerFieldNumber;
  500. const int protobuf_sgx_report_body_t::kReserved3FieldNumber;
  501. const int protobuf_sgx_report_body_t::kIsvProdIdFieldNumber;
  502. const int protobuf_sgx_report_body_t::kIsvSvnFieldNumber;
  503. const int protobuf_sgx_report_body_t::kReserved4FieldNumber;
  504. const int protobuf_sgx_report_body_t::kReportDataFieldNumber;
  505. #endif // !_MSC_VER
  506. protobuf_sgx_report_body_t::protobuf_sgx_report_body_t()
  507. : ::google::protobuf::MessageLite() {
  508. SharedCtor();
  509. // @@protoc_insertion_point(constructor:protobuf_sgx_report_body_t)
  510. }
  511. void protobuf_sgx_report_body_t::InitAsDefaultInstance() {
  512. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  513. attributes_ = const_cast< ::protobuf_sgx_attributes_t*>(
  514. ::protobuf_sgx_attributes_t::internal_default_instance());
  515. #else
  516. attributes_ = const_cast< ::protobuf_sgx_attributes_t*>(&::protobuf_sgx_attributes_t::default_instance());
  517. #endif
  518. }
  519. protobuf_sgx_report_body_t::protobuf_sgx_report_body_t(const protobuf_sgx_report_body_t& from)
  520. : ::google::protobuf::MessageLite() {
  521. SharedCtor();
  522. MergeFrom(from);
  523. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_report_body_t)
  524. }
  525. void protobuf_sgx_report_body_t::SharedCtor() {
  526. _cached_size_ = 0;
  527. misc_select_ = 0u;
  528. attributes_ = NULL;
  529. isv_prod_id_ = 0u;
  530. isv_svn_ = 0u;
  531. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  532. }
  533. protobuf_sgx_report_body_t::~protobuf_sgx_report_body_t() {
  534. // @@protoc_insertion_point(destructor:protobuf_sgx_report_body_t)
  535. SharedDtor();
  536. }
  537. void protobuf_sgx_report_body_t::SharedDtor() {
  538. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  539. if (this != &default_instance()) {
  540. #else
  541. if (this != default_instance_) {
  542. #endif
  543. delete attributes_;
  544. }
  545. }
  546. void protobuf_sgx_report_body_t::SetCachedSize(int size) const {
  547. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  548. _cached_size_ = size;
  549. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  550. }
  551. const protobuf_sgx_report_body_t& protobuf_sgx_report_body_t::default_instance() {
  552. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  553. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  554. #else
  555. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  556. #endif
  557. return *default_instance_;
  558. }
  559. protobuf_sgx_report_body_t* protobuf_sgx_report_body_t::default_instance_ = NULL;
  560. protobuf_sgx_report_body_t* protobuf_sgx_report_body_t::New() const {
  561. return new protobuf_sgx_report_body_t;
  562. }
  563. void protobuf_sgx_report_body_t::Clear() {
  564. if (_has_bits_[0 / 32] & 10) {
  565. misc_select_ = 0u;
  566. if (has_attributes()) {
  567. if (attributes_ != NULL) attributes_->::protobuf_sgx_attributes_t::Clear();
  568. }
  569. }
  570. if (_has_bits_[8 / 32] & 768) {
  571. isv_prod_id_ = 0u;
  572. isv_svn_ = 0u;
  573. }
  574. cpu_svn_.Clear();
  575. reserved1_.Clear();
  576. mr_enclave_.Clear();
  577. reserved2_.Clear();
  578. mr_signer_.Clear();
  579. reserved3_.Clear();
  580. reserved4_.Clear();
  581. report_data_.Clear();
  582. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  583. mutable_unknown_fields()->clear();
  584. }
  585. bool protobuf_sgx_report_body_t::MergePartialFromCodedStream(
  586. ::google::protobuf::io::CodedInputStream* input) {
  587. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  588. ::google::protobuf::uint32 tag;
  589. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  590. mutable_unknown_fields());
  591. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  592. &unknown_fields_string);
  593. // @@protoc_insertion_point(parse_start:protobuf_sgx_report_body_t)
  594. for (;;) {
  595. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  596. tag = p.first;
  597. if (!p.second) goto handle_unusual;
  598. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  599. // repeated uint32 cpu_svn = 1 [packed = true];
  600. case 1: {
  601. if (tag == 10) {
  602. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  603. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  604. input, this->mutable_cpu_svn())));
  605. } else if (tag == 8) {
  606. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  607. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  608. 1, 10, input, this->mutable_cpu_svn())));
  609. } else {
  610. goto handle_unusual;
  611. }
  612. if (input->ExpectTag(18)) goto parse_reserved1;
  613. break;
  614. }
  615. // repeated uint32 reserved1 = 2 [packed = true];
  616. case 2: {
  617. if (tag == 18) {
  618. parse_reserved1:
  619. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  620. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  621. input, this->mutable_reserved1())));
  622. } else if (tag == 16) {
  623. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  624. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  625. 1, 18, input, this->mutable_reserved1())));
  626. } else {
  627. goto handle_unusual;
  628. }
  629. if (input->ExpectTag(26)) goto parse_mr_enclave;
  630. break;
  631. }
  632. // repeated uint32 mr_enclave = 3 [packed = true];
  633. case 3: {
  634. if (tag == 26) {
  635. parse_mr_enclave:
  636. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  637. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  638. input, this->mutable_mr_enclave())));
  639. } else if (tag == 24) {
  640. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  641. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  642. 1, 26, input, this->mutable_mr_enclave())));
  643. } else {
  644. goto handle_unusual;
  645. }
  646. if (input->ExpectTag(34)) goto parse_reserved2;
  647. break;
  648. }
  649. // repeated uint32 reserved2 = 4 [packed = true];
  650. case 4: {
  651. if (tag == 34) {
  652. parse_reserved2:
  653. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  654. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  655. input, this->mutable_reserved2())));
  656. } else if (tag == 32) {
  657. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  658. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  659. 1, 34, input, this->mutable_reserved2())));
  660. } else {
  661. goto handle_unusual;
  662. }
  663. if (input->ExpectTag(42)) goto parse_mr_signer;
  664. break;
  665. }
  666. // repeated uint32 mr_signer = 5 [packed = true];
  667. case 5: {
  668. if (tag == 42) {
  669. parse_mr_signer:
  670. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  671. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  672. input, this->mutable_mr_signer())));
  673. } else if (tag == 40) {
  674. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  675. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  676. 1, 42, input, this->mutable_mr_signer())));
  677. } else {
  678. goto handle_unusual;
  679. }
  680. if (input->ExpectTag(50)) goto parse_reserved3;
  681. break;
  682. }
  683. // repeated uint32 reserved3 = 6 [packed = true];
  684. case 6: {
  685. if (tag == 50) {
  686. parse_reserved3:
  687. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  688. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  689. input, this->mutable_reserved3())));
  690. } else if (tag == 48) {
  691. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  692. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  693. 1, 50, input, this->mutable_reserved3())));
  694. } else {
  695. goto handle_unusual;
  696. }
  697. if (input->ExpectTag(58)) goto parse_reserved4;
  698. break;
  699. }
  700. // repeated uint32 reserved4 = 7 [packed = true];
  701. case 7: {
  702. if (tag == 58) {
  703. parse_reserved4:
  704. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  705. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  706. input, this->mutable_reserved4())));
  707. } else if (tag == 56) {
  708. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  709. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  710. 1, 58, input, this->mutable_reserved4())));
  711. } else {
  712. goto handle_unusual;
  713. }
  714. if (input->ExpectTag(66)) goto parse_report_data;
  715. break;
  716. }
  717. // repeated uint32 report_data = 8 [packed = true];
  718. case 8: {
  719. if (tag == 66) {
  720. parse_report_data:
  721. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  722. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  723. input, this->mutable_report_data())));
  724. } else if (tag == 64) {
  725. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  726. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  727. 1, 66, input, this->mutable_report_data())));
  728. } else {
  729. goto handle_unusual;
  730. }
  731. if (input->ExpectTag(72)) goto parse_misc_select;
  732. break;
  733. }
  734. // required uint32 misc_select = 9;
  735. case 9: {
  736. if (tag == 72) {
  737. parse_misc_select:
  738. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  739. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  740. input, &misc_select_)));
  741. set_has_misc_select();
  742. } else {
  743. goto handle_unusual;
  744. }
  745. if (input->ExpectTag(82)) goto parse_attributes;
  746. break;
  747. }
  748. // required .protobuf_sgx_attributes_t attributes = 10;
  749. case 10: {
  750. if (tag == 82) {
  751. parse_attributes:
  752. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  753. input, mutable_attributes()));
  754. } else {
  755. goto handle_unusual;
  756. }
  757. if (input->ExpectTag(88)) goto parse_isv_prod_id;
  758. break;
  759. }
  760. // required uint32 isv_prod_id = 11;
  761. case 11: {
  762. if (tag == 88) {
  763. parse_isv_prod_id:
  764. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  765. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  766. input, &isv_prod_id_)));
  767. set_has_isv_prod_id();
  768. } else {
  769. goto handle_unusual;
  770. }
  771. if (input->ExpectTag(96)) goto parse_isv_svn;
  772. break;
  773. }
  774. // required uint32 isv_svn = 12;
  775. case 12: {
  776. if (tag == 96) {
  777. parse_isv_svn:
  778. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  779. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  780. input, &isv_svn_)));
  781. set_has_isv_svn();
  782. } else {
  783. goto handle_unusual;
  784. }
  785. if (input->ExpectAtEnd()) goto success;
  786. break;
  787. }
  788. default: {
  789. handle_unusual:
  790. if (tag == 0 ||
  791. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  792. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  793. goto success;
  794. }
  795. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  796. input, tag, &unknown_fields_stream));
  797. break;
  798. }
  799. }
  800. }
  801. success:
  802. // @@protoc_insertion_point(parse_success:protobuf_sgx_report_body_t)
  803. return true;
  804. failure:
  805. // @@protoc_insertion_point(parse_failure:protobuf_sgx_report_body_t)
  806. return false;
  807. #undef DO_
  808. }
  809. void protobuf_sgx_report_body_t::SerializeWithCachedSizes(
  810. ::google::protobuf::io::CodedOutputStream* output) const {
  811. // @@protoc_insertion_point(serialize_start:protobuf_sgx_report_body_t)
  812. // repeated uint32 cpu_svn = 1 [packed = true];
  813. if (this->cpu_svn_size() > 0) {
  814. ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  815. output->WriteVarint32(_cpu_svn_cached_byte_size_);
  816. }
  817. for (int i = 0; i < this->cpu_svn_size(); i++) {
  818. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  819. this->cpu_svn(i), output);
  820. }
  821. // repeated uint32 reserved1 = 2 [packed = true];
  822. if (this->reserved1_size() > 0) {
  823. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  824. output->WriteVarint32(_reserved1_cached_byte_size_);
  825. }
  826. for (int i = 0; i < this->reserved1_size(); i++) {
  827. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  828. this->reserved1(i), output);
  829. }
  830. // repeated uint32 mr_enclave = 3 [packed = true];
  831. if (this->mr_enclave_size() > 0) {
  832. ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  833. output->WriteVarint32(_mr_enclave_cached_byte_size_);
  834. }
  835. for (int i = 0; i < this->mr_enclave_size(); i++) {
  836. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  837. this->mr_enclave(i), output);
  838. }
  839. // repeated uint32 reserved2 = 4 [packed = true];
  840. if (this->reserved2_size() > 0) {
  841. ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  842. output->WriteVarint32(_reserved2_cached_byte_size_);
  843. }
  844. for (int i = 0; i < this->reserved2_size(); i++) {
  845. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  846. this->reserved2(i), output);
  847. }
  848. // repeated uint32 mr_signer = 5 [packed = true];
  849. if (this->mr_signer_size() > 0) {
  850. ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  851. output->WriteVarint32(_mr_signer_cached_byte_size_);
  852. }
  853. for (int i = 0; i < this->mr_signer_size(); i++) {
  854. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  855. this->mr_signer(i), output);
  856. }
  857. // repeated uint32 reserved3 = 6 [packed = true];
  858. if (this->reserved3_size() > 0) {
  859. ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  860. output->WriteVarint32(_reserved3_cached_byte_size_);
  861. }
  862. for (int i = 0; i < this->reserved3_size(); i++) {
  863. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  864. this->reserved3(i), output);
  865. }
  866. // repeated uint32 reserved4 = 7 [packed = true];
  867. if (this->reserved4_size() > 0) {
  868. ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  869. output->WriteVarint32(_reserved4_cached_byte_size_);
  870. }
  871. for (int i = 0; i < this->reserved4_size(); i++) {
  872. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  873. this->reserved4(i), output);
  874. }
  875. // repeated uint32 report_data = 8 [packed = true];
  876. if (this->report_data_size() > 0) {
  877. ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  878. output->WriteVarint32(_report_data_cached_byte_size_);
  879. }
  880. for (int i = 0; i < this->report_data_size(); i++) {
  881. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  882. this->report_data(i), output);
  883. }
  884. // required uint32 misc_select = 9;
  885. if (has_misc_select()) {
  886. ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->misc_select(), output);
  887. }
  888. // required .protobuf_sgx_attributes_t attributes = 10;
  889. if (has_attributes()) {
  890. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  891. 10, this->attributes(), output);
  892. }
  893. // required uint32 isv_prod_id = 11;
  894. if (has_isv_prod_id()) {
  895. ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->isv_prod_id(), output);
  896. }
  897. // required uint32 isv_svn = 12;
  898. if (has_isv_svn()) {
  899. ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->isv_svn(), output);
  900. }
  901. output->WriteRaw(unknown_fields().data(),
  902. unknown_fields().size());
  903. // @@protoc_insertion_point(serialize_end:protobuf_sgx_report_body_t)
  904. }
  905. int protobuf_sgx_report_body_t::ByteSize() const {
  906. int total_size = 0;
  907. if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
  908. // required uint32 misc_select = 9;
  909. if (has_misc_select()) {
  910. total_size += 1 +
  911. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  912. this->misc_select());
  913. }
  914. // required .protobuf_sgx_attributes_t attributes = 10;
  915. if (has_attributes()) {
  916. total_size += 1 +
  917. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  918. this->attributes());
  919. }
  920. }
  921. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  922. // required uint32 isv_prod_id = 11;
  923. if (has_isv_prod_id()) {
  924. total_size += 1 +
  925. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  926. this->isv_prod_id());
  927. }
  928. // required uint32 isv_svn = 12;
  929. if (has_isv_svn()) {
  930. total_size += 1 +
  931. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  932. this->isv_svn());
  933. }
  934. }
  935. // repeated uint32 cpu_svn = 1 [packed = true];
  936. {
  937. int data_size = 0;
  938. for (int i = 0; i < this->cpu_svn_size(); i++) {
  939. data_size += ::google::protobuf::internal::WireFormatLite::
  940. UInt32Size(this->cpu_svn(i));
  941. }
  942. if (data_size > 0) {
  943. total_size += 1 +
  944. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  945. }
  946. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  947. _cpu_svn_cached_byte_size_ = data_size;
  948. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  949. total_size += data_size;
  950. }
  951. // repeated uint32 reserved1 = 2 [packed = true];
  952. {
  953. int data_size = 0;
  954. for (int i = 0; i < this->reserved1_size(); i++) {
  955. data_size += ::google::protobuf::internal::WireFormatLite::
  956. UInt32Size(this->reserved1(i));
  957. }
  958. if (data_size > 0) {
  959. total_size += 1 +
  960. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  961. }
  962. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  963. _reserved1_cached_byte_size_ = data_size;
  964. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  965. total_size += data_size;
  966. }
  967. // repeated uint32 mr_enclave = 3 [packed = true];
  968. {
  969. int data_size = 0;
  970. for (int i = 0; i < this->mr_enclave_size(); i++) {
  971. data_size += ::google::protobuf::internal::WireFormatLite::
  972. UInt32Size(this->mr_enclave(i));
  973. }
  974. if (data_size > 0) {
  975. total_size += 1 +
  976. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  977. }
  978. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  979. _mr_enclave_cached_byte_size_ = data_size;
  980. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  981. total_size += data_size;
  982. }
  983. // repeated uint32 reserved2 = 4 [packed = true];
  984. {
  985. int data_size = 0;
  986. for (int i = 0; i < this->reserved2_size(); i++) {
  987. data_size += ::google::protobuf::internal::WireFormatLite::
  988. UInt32Size(this->reserved2(i));
  989. }
  990. if (data_size > 0) {
  991. total_size += 1 +
  992. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  993. }
  994. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  995. _reserved2_cached_byte_size_ = data_size;
  996. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  997. total_size += data_size;
  998. }
  999. // repeated uint32 mr_signer = 5 [packed = true];
  1000. {
  1001. int data_size = 0;
  1002. for (int i = 0; i < this->mr_signer_size(); i++) {
  1003. data_size += ::google::protobuf::internal::WireFormatLite::
  1004. UInt32Size(this->mr_signer(i));
  1005. }
  1006. if (data_size > 0) {
  1007. total_size += 1 +
  1008. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1009. }
  1010. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1011. _mr_signer_cached_byte_size_ = data_size;
  1012. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1013. total_size += data_size;
  1014. }
  1015. // repeated uint32 reserved3 = 6 [packed = true];
  1016. {
  1017. int data_size = 0;
  1018. for (int i = 0; i < this->reserved3_size(); i++) {
  1019. data_size += ::google::protobuf::internal::WireFormatLite::
  1020. UInt32Size(this->reserved3(i));
  1021. }
  1022. if (data_size > 0) {
  1023. total_size += 1 +
  1024. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1025. }
  1026. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1027. _reserved3_cached_byte_size_ = data_size;
  1028. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1029. total_size += data_size;
  1030. }
  1031. // repeated uint32 reserved4 = 7 [packed = true];
  1032. {
  1033. int data_size = 0;
  1034. for (int i = 0; i < this->reserved4_size(); i++) {
  1035. data_size += ::google::protobuf::internal::WireFormatLite::
  1036. UInt32Size(this->reserved4(i));
  1037. }
  1038. if (data_size > 0) {
  1039. total_size += 1 +
  1040. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1041. }
  1042. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1043. _reserved4_cached_byte_size_ = data_size;
  1044. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1045. total_size += data_size;
  1046. }
  1047. // repeated uint32 report_data = 8 [packed = true];
  1048. {
  1049. int data_size = 0;
  1050. for (int i = 0; i < this->report_data_size(); i++) {
  1051. data_size += ::google::protobuf::internal::WireFormatLite::
  1052. UInt32Size(this->report_data(i));
  1053. }
  1054. if (data_size > 0) {
  1055. total_size += 1 +
  1056. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1057. }
  1058. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1059. _report_data_cached_byte_size_ = data_size;
  1060. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1061. total_size += data_size;
  1062. }
  1063. total_size += unknown_fields().size();
  1064. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1065. _cached_size_ = total_size;
  1066. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1067. return total_size;
  1068. }
  1069. void protobuf_sgx_report_body_t::CheckTypeAndMergeFrom(
  1070. const ::google::protobuf::MessageLite& from) {
  1071. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_report_body_t*>(&from));
  1072. }
  1073. void protobuf_sgx_report_body_t::MergeFrom(const protobuf_sgx_report_body_t& from) {
  1074. GOOGLE_CHECK_NE(&from, this);
  1075. cpu_svn_.MergeFrom(from.cpu_svn_);
  1076. reserved1_.MergeFrom(from.reserved1_);
  1077. mr_enclave_.MergeFrom(from.mr_enclave_);
  1078. reserved2_.MergeFrom(from.reserved2_);
  1079. mr_signer_.MergeFrom(from.mr_signer_);
  1080. reserved3_.MergeFrom(from.reserved3_);
  1081. reserved4_.MergeFrom(from.reserved4_);
  1082. report_data_.MergeFrom(from.report_data_);
  1083. if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
  1084. if (from.has_misc_select()) {
  1085. set_misc_select(from.misc_select());
  1086. }
  1087. if (from.has_attributes()) {
  1088. mutable_attributes()->::protobuf_sgx_attributes_t::MergeFrom(from.attributes());
  1089. }
  1090. }
  1091. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  1092. if (from.has_isv_prod_id()) {
  1093. set_isv_prod_id(from.isv_prod_id());
  1094. }
  1095. if (from.has_isv_svn()) {
  1096. set_isv_svn(from.isv_svn());
  1097. }
  1098. }
  1099. mutable_unknown_fields()->append(from.unknown_fields());
  1100. }
  1101. void protobuf_sgx_report_body_t::CopyFrom(const protobuf_sgx_report_body_t& from) {
  1102. if (&from == this) return;
  1103. Clear();
  1104. MergeFrom(from);
  1105. }
  1106. bool protobuf_sgx_report_body_t::IsInitialized() const {
  1107. if ((_has_bits_[0] & 0x0000030a) != 0x0000030a) return false;
  1108. if (has_attributes()) {
  1109. if (!this->attributes().IsInitialized()) return false;
  1110. }
  1111. return true;
  1112. }
  1113. void protobuf_sgx_report_body_t::Swap(protobuf_sgx_report_body_t* other) {
  1114. if (other != this) {
  1115. cpu_svn_.Swap(&other->cpu_svn_);
  1116. std::swap(misc_select_, other->misc_select_);
  1117. reserved1_.Swap(&other->reserved1_);
  1118. std::swap(attributes_, other->attributes_);
  1119. mr_enclave_.Swap(&other->mr_enclave_);
  1120. reserved2_.Swap(&other->reserved2_);
  1121. mr_signer_.Swap(&other->mr_signer_);
  1122. reserved3_.Swap(&other->reserved3_);
  1123. std::swap(isv_prod_id_, other->isv_prod_id_);
  1124. std::swap(isv_svn_, other->isv_svn_);
  1125. reserved4_.Swap(&other->reserved4_);
  1126. report_data_.Swap(&other->report_data_);
  1127. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1128. _unknown_fields_.swap(other->_unknown_fields_);
  1129. std::swap(_cached_size_, other->_cached_size_);
  1130. }
  1131. }
  1132. ::std::string protobuf_sgx_report_body_t::GetTypeName() const {
  1133. return "protobuf_sgx_report_body_t";
  1134. }
  1135. // ===================================================================
  1136. #ifndef _MSC_VER
  1137. const int protobuf_sgx_report_t::kBodyFieldNumber;
  1138. const int protobuf_sgx_report_t::kKeyIdFieldNumber;
  1139. const int protobuf_sgx_report_t::kMacFieldNumber;
  1140. #endif // !_MSC_VER
  1141. protobuf_sgx_report_t::protobuf_sgx_report_t()
  1142. : ::google::protobuf::MessageLite() {
  1143. SharedCtor();
  1144. // @@protoc_insertion_point(constructor:protobuf_sgx_report_t)
  1145. }
  1146. void protobuf_sgx_report_t::InitAsDefaultInstance() {
  1147. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1148. body_ = const_cast< ::protobuf_sgx_report_body_t*>(
  1149. ::protobuf_sgx_report_body_t::internal_default_instance());
  1150. #else
  1151. body_ = const_cast< ::protobuf_sgx_report_body_t*>(&::protobuf_sgx_report_body_t::default_instance());
  1152. #endif
  1153. }
  1154. protobuf_sgx_report_t::protobuf_sgx_report_t(const protobuf_sgx_report_t& from)
  1155. : ::google::protobuf::MessageLite() {
  1156. SharedCtor();
  1157. MergeFrom(from);
  1158. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_report_t)
  1159. }
  1160. void protobuf_sgx_report_t::SharedCtor() {
  1161. _cached_size_ = 0;
  1162. body_ = NULL;
  1163. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1164. }
  1165. protobuf_sgx_report_t::~protobuf_sgx_report_t() {
  1166. // @@protoc_insertion_point(destructor:protobuf_sgx_report_t)
  1167. SharedDtor();
  1168. }
  1169. void protobuf_sgx_report_t::SharedDtor() {
  1170. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1171. if (this != &default_instance()) {
  1172. #else
  1173. if (this != default_instance_) {
  1174. #endif
  1175. delete body_;
  1176. }
  1177. }
  1178. void protobuf_sgx_report_t::SetCachedSize(int size) const {
  1179. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1180. _cached_size_ = size;
  1181. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1182. }
  1183. const protobuf_sgx_report_t& protobuf_sgx_report_t::default_instance() {
  1184. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1185. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  1186. #else
  1187. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  1188. #endif
  1189. return *default_instance_;
  1190. }
  1191. protobuf_sgx_report_t* protobuf_sgx_report_t::default_instance_ = NULL;
  1192. protobuf_sgx_report_t* protobuf_sgx_report_t::New() const {
  1193. return new protobuf_sgx_report_t;
  1194. }
  1195. void protobuf_sgx_report_t::Clear() {
  1196. if (has_body()) {
  1197. if (body_ != NULL) body_->::protobuf_sgx_report_body_t::Clear();
  1198. }
  1199. key_id_.Clear();
  1200. mac_.Clear();
  1201. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1202. mutable_unknown_fields()->clear();
  1203. }
  1204. bool protobuf_sgx_report_t::MergePartialFromCodedStream(
  1205. ::google::protobuf::io::CodedInputStream* input) {
  1206. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  1207. ::google::protobuf::uint32 tag;
  1208. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  1209. mutable_unknown_fields());
  1210. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  1211. &unknown_fields_string);
  1212. // @@protoc_insertion_point(parse_start:protobuf_sgx_report_t)
  1213. for (;;) {
  1214. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  1215. tag = p.first;
  1216. if (!p.second) goto handle_unusual;
  1217. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1218. // required .protobuf_sgx_report_body_t body = 1;
  1219. case 1: {
  1220. if (tag == 10) {
  1221. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1222. input, mutable_body()));
  1223. } else {
  1224. goto handle_unusual;
  1225. }
  1226. if (input->ExpectTag(18)) goto parse_key_id;
  1227. break;
  1228. }
  1229. // repeated uint32 key_id = 2 [packed = true];
  1230. case 2: {
  1231. if (tag == 18) {
  1232. parse_key_id:
  1233. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  1234. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1235. input, this->mutable_key_id())));
  1236. } else if (tag == 16) {
  1237. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  1238. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1239. 1, 18, input, this->mutable_key_id())));
  1240. } else {
  1241. goto handle_unusual;
  1242. }
  1243. if (input->ExpectTag(26)) goto parse_mac;
  1244. break;
  1245. }
  1246. // repeated uint32 mac = 3 [packed = true];
  1247. case 3: {
  1248. if (tag == 26) {
  1249. parse_mac:
  1250. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  1251. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1252. input, this->mutable_mac())));
  1253. } else if (tag == 24) {
  1254. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  1255. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1256. 1, 26, input, this->mutable_mac())));
  1257. } else {
  1258. goto handle_unusual;
  1259. }
  1260. if (input->ExpectAtEnd()) goto success;
  1261. break;
  1262. }
  1263. default: {
  1264. handle_unusual:
  1265. if (tag == 0 ||
  1266. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1267. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1268. goto success;
  1269. }
  1270. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  1271. input, tag, &unknown_fields_stream));
  1272. break;
  1273. }
  1274. }
  1275. }
  1276. success:
  1277. // @@protoc_insertion_point(parse_success:protobuf_sgx_report_t)
  1278. return true;
  1279. failure:
  1280. // @@protoc_insertion_point(parse_failure:protobuf_sgx_report_t)
  1281. return false;
  1282. #undef DO_
  1283. }
  1284. void protobuf_sgx_report_t::SerializeWithCachedSizes(
  1285. ::google::protobuf::io::CodedOutputStream* output) const {
  1286. // @@protoc_insertion_point(serialize_start:protobuf_sgx_report_t)
  1287. // required .protobuf_sgx_report_body_t body = 1;
  1288. if (has_body()) {
  1289. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  1290. 1, this->body(), output);
  1291. }
  1292. // repeated uint32 key_id = 2 [packed = true];
  1293. if (this->key_id_size() > 0) {
  1294. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  1295. output->WriteVarint32(_key_id_cached_byte_size_);
  1296. }
  1297. for (int i = 0; i < this->key_id_size(); i++) {
  1298. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  1299. this->key_id(i), output);
  1300. }
  1301. // repeated uint32 mac = 3 [packed = true];
  1302. if (this->mac_size() > 0) {
  1303. ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  1304. output->WriteVarint32(_mac_cached_byte_size_);
  1305. }
  1306. for (int i = 0; i < this->mac_size(); i++) {
  1307. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  1308. this->mac(i), output);
  1309. }
  1310. output->WriteRaw(unknown_fields().data(),
  1311. unknown_fields().size());
  1312. // @@protoc_insertion_point(serialize_end:protobuf_sgx_report_t)
  1313. }
  1314. int protobuf_sgx_report_t::ByteSize() const {
  1315. int total_size = 0;
  1316. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1317. // required .protobuf_sgx_report_body_t body = 1;
  1318. if (has_body()) {
  1319. total_size += 1 +
  1320. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1321. this->body());
  1322. }
  1323. }
  1324. // repeated uint32 key_id = 2 [packed = true];
  1325. {
  1326. int data_size = 0;
  1327. for (int i = 0; i < this->key_id_size(); i++) {
  1328. data_size += ::google::protobuf::internal::WireFormatLite::
  1329. UInt32Size(this->key_id(i));
  1330. }
  1331. if (data_size > 0) {
  1332. total_size += 1 +
  1333. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1334. }
  1335. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1336. _key_id_cached_byte_size_ = data_size;
  1337. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1338. total_size += data_size;
  1339. }
  1340. // repeated uint32 mac = 3 [packed = true];
  1341. {
  1342. int data_size = 0;
  1343. for (int i = 0; i < this->mac_size(); i++) {
  1344. data_size += ::google::protobuf::internal::WireFormatLite::
  1345. UInt32Size(this->mac(i));
  1346. }
  1347. if (data_size > 0) {
  1348. total_size += 1 +
  1349. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1350. }
  1351. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1352. _mac_cached_byte_size_ = data_size;
  1353. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1354. total_size += data_size;
  1355. }
  1356. total_size += unknown_fields().size();
  1357. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1358. _cached_size_ = total_size;
  1359. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1360. return total_size;
  1361. }
  1362. void protobuf_sgx_report_t::CheckTypeAndMergeFrom(
  1363. const ::google::protobuf::MessageLite& from) {
  1364. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_report_t*>(&from));
  1365. }
  1366. void protobuf_sgx_report_t::MergeFrom(const protobuf_sgx_report_t& from) {
  1367. GOOGLE_CHECK_NE(&from, this);
  1368. key_id_.MergeFrom(from.key_id_);
  1369. mac_.MergeFrom(from.mac_);
  1370. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1371. if (from.has_body()) {
  1372. mutable_body()->::protobuf_sgx_report_body_t::MergeFrom(from.body());
  1373. }
  1374. }
  1375. mutable_unknown_fields()->append(from.unknown_fields());
  1376. }
  1377. void protobuf_sgx_report_t::CopyFrom(const protobuf_sgx_report_t& from) {
  1378. if (&from == this) return;
  1379. Clear();
  1380. MergeFrom(from);
  1381. }
  1382. bool protobuf_sgx_report_t::IsInitialized() const {
  1383. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  1384. if (has_body()) {
  1385. if (!this->body().IsInitialized()) return false;
  1386. }
  1387. return true;
  1388. }
  1389. void protobuf_sgx_report_t::Swap(protobuf_sgx_report_t* other) {
  1390. if (other != this) {
  1391. std::swap(body_, other->body_);
  1392. key_id_.Swap(&other->key_id_);
  1393. mac_.Swap(&other->mac_);
  1394. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1395. _unknown_fields_.swap(other->_unknown_fields_);
  1396. std::swap(_cached_size_, other->_cached_size_);
  1397. }
  1398. }
  1399. ::std::string protobuf_sgx_report_t::GetTypeName() const {
  1400. return "protobuf_sgx_report_t";
  1401. }
  1402. // ===================================================================
  1403. #ifndef _MSC_VER
  1404. const int protobuf_sgx_target_info_t::kMrEnclaveFieldNumber;
  1405. const int protobuf_sgx_target_info_t::kAttributesFieldNumber;
  1406. const int protobuf_sgx_target_info_t::kReserved1FieldNumber;
  1407. const int protobuf_sgx_target_info_t::kMiscSelectFieldNumber;
  1408. const int protobuf_sgx_target_info_t::kReserved2FieldNumber;
  1409. #endif // !_MSC_VER
  1410. protobuf_sgx_target_info_t::protobuf_sgx_target_info_t()
  1411. : ::google::protobuf::MessageLite() {
  1412. SharedCtor();
  1413. // @@protoc_insertion_point(constructor:protobuf_sgx_target_info_t)
  1414. }
  1415. void protobuf_sgx_target_info_t::InitAsDefaultInstance() {
  1416. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1417. attributes_ = const_cast< ::protobuf_sgx_attributes_t*>(
  1418. ::protobuf_sgx_attributes_t::internal_default_instance());
  1419. #else
  1420. attributes_ = const_cast< ::protobuf_sgx_attributes_t*>(&::protobuf_sgx_attributes_t::default_instance());
  1421. #endif
  1422. }
  1423. protobuf_sgx_target_info_t::protobuf_sgx_target_info_t(const protobuf_sgx_target_info_t& from)
  1424. : ::google::protobuf::MessageLite() {
  1425. SharedCtor();
  1426. MergeFrom(from);
  1427. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_target_info_t)
  1428. }
  1429. void protobuf_sgx_target_info_t::SharedCtor() {
  1430. _cached_size_ = 0;
  1431. attributes_ = NULL;
  1432. misc_select_ = 0u;
  1433. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1434. }
  1435. protobuf_sgx_target_info_t::~protobuf_sgx_target_info_t() {
  1436. // @@protoc_insertion_point(destructor:protobuf_sgx_target_info_t)
  1437. SharedDtor();
  1438. }
  1439. void protobuf_sgx_target_info_t::SharedDtor() {
  1440. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1441. if (this != &default_instance()) {
  1442. #else
  1443. if (this != default_instance_) {
  1444. #endif
  1445. delete attributes_;
  1446. }
  1447. }
  1448. void protobuf_sgx_target_info_t::SetCachedSize(int size) const {
  1449. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1450. _cached_size_ = size;
  1451. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1452. }
  1453. const protobuf_sgx_target_info_t& protobuf_sgx_target_info_t::default_instance() {
  1454. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1455. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  1456. #else
  1457. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  1458. #endif
  1459. return *default_instance_;
  1460. }
  1461. protobuf_sgx_target_info_t* protobuf_sgx_target_info_t::default_instance_ = NULL;
  1462. protobuf_sgx_target_info_t* protobuf_sgx_target_info_t::New() const {
  1463. return new protobuf_sgx_target_info_t;
  1464. }
  1465. void protobuf_sgx_target_info_t::Clear() {
  1466. if (_has_bits_[0 / 32] & 10) {
  1467. if (has_attributes()) {
  1468. if (attributes_ != NULL) attributes_->::protobuf_sgx_attributes_t::Clear();
  1469. }
  1470. misc_select_ = 0u;
  1471. }
  1472. mr_enclave_.Clear();
  1473. reserved1_.Clear();
  1474. reserved2_.Clear();
  1475. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1476. mutable_unknown_fields()->clear();
  1477. }
  1478. bool protobuf_sgx_target_info_t::MergePartialFromCodedStream(
  1479. ::google::protobuf::io::CodedInputStream* input) {
  1480. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  1481. ::google::protobuf::uint32 tag;
  1482. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  1483. mutable_unknown_fields());
  1484. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  1485. &unknown_fields_string);
  1486. // @@protoc_insertion_point(parse_start:protobuf_sgx_target_info_t)
  1487. for (;;) {
  1488. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  1489. tag = p.first;
  1490. if (!p.second) goto handle_unusual;
  1491. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1492. // repeated uint32 mr_enclave = 1 [packed = true];
  1493. case 1: {
  1494. if (tag == 10) {
  1495. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  1496. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1497. input, this->mutable_mr_enclave())));
  1498. } else if (tag == 8) {
  1499. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  1500. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1501. 1, 10, input, this->mutable_mr_enclave())));
  1502. } else {
  1503. goto handle_unusual;
  1504. }
  1505. if (input->ExpectTag(18)) goto parse_reserved1;
  1506. break;
  1507. }
  1508. // repeated uint32 reserved1 = 2 [packed = true];
  1509. case 2: {
  1510. if (tag == 18) {
  1511. parse_reserved1:
  1512. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  1513. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1514. input, this->mutable_reserved1())));
  1515. } else if (tag == 16) {
  1516. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  1517. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1518. 1, 18, input, this->mutable_reserved1())));
  1519. } else {
  1520. goto handle_unusual;
  1521. }
  1522. if (input->ExpectTag(26)) goto parse_reserved2;
  1523. break;
  1524. }
  1525. // repeated uint32 reserved2 = 3 [packed = true];
  1526. case 3: {
  1527. if (tag == 26) {
  1528. parse_reserved2:
  1529. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  1530. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1531. input, this->mutable_reserved2())));
  1532. } else if (tag == 24) {
  1533. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  1534. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1535. 1, 26, input, this->mutable_reserved2())));
  1536. } else {
  1537. goto handle_unusual;
  1538. }
  1539. if (input->ExpectTag(34)) goto parse_attributes;
  1540. break;
  1541. }
  1542. // required .protobuf_sgx_attributes_t attributes = 4;
  1543. case 4: {
  1544. if (tag == 34) {
  1545. parse_attributes:
  1546. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1547. input, mutable_attributes()));
  1548. } else {
  1549. goto handle_unusual;
  1550. }
  1551. if (input->ExpectTag(40)) goto parse_misc_select;
  1552. break;
  1553. }
  1554. // required uint32 misc_select = 5;
  1555. case 5: {
  1556. if (tag == 40) {
  1557. parse_misc_select:
  1558. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1559. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  1560. input, &misc_select_)));
  1561. set_has_misc_select();
  1562. } else {
  1563. goto handle_unusual;
  1564. }
  1565. if (input->ExpectAtEnd()) goto success;
  1566. break;
  1567. }
  1568. default: {
  1569. handle_unusual:
  1570. if (tag == 0 ||
  1571. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1572. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1573. goto success;
  1574. }
  1575. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  1576. input, tag, &unknown_fields_stream));
  1577. break;
  1578. }
  1579. }
  1580. }
  1581. success:
  1582. // @@protoc_insertion_point(parse_success:protobuf_sgx_target_info_t)
  1583. return true;
  1584. failure:
  1585. // @@protoc_insertion_point(parse_failure:protobuf_sgx_target_info_t)
  1586. return false;
  1587. #undef DO_
  1588. }
  1589. void protobuf_sgx_target_info_t::SerializeWithCachedSizes(
  1590. ::google::protobuf::io::CodedOutputStream* output) const {
  1591. // @@protoc_insertion_point(serialize_start:protobuf_sgx_target_info_t)
  1592. // repeated uint32 mr_enclave = 1 [packed = true];
  1593. if (this->mr_enclave_size() > 0) {
  1594. ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  1595. output->WriteVarint32(_mr_enclave_cached_byte_size_);
  1596. }
  1597. for (int i = 0; i < this->mr_enclave_size(); i++) {
  1598. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  1599. this->mr_enclave(i), output);
  1600. }
  1601. // repeated uint32 reserved1 = 2 [packed = true];
  1602. if (this->reserved1_size() > 0) {
  1603. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  1604. output->WriteVarint32(_reserved1_cached_byte_size_);
  1605. }
  1606. for (int i = 0; i < this->reserved1_size(); i++) {
  1607. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  1608. this->reserved1(i), output);
  1609. }
  1610. // repeated uint32 reserved2 = 3 [packed = true];
  1611. if (this->reserved2_size() > 0) {
  1612. ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  1613. output->WriteVarint32(_reserved2_cached_byte_size_);
  1614. }
  1615. for (int i = 0; i < this->reserved2_size(); i++) {
  1616. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  1617. this->reserved2(i), output);
  1618. }
  1619. // required .protobuf_sgx_attributes_t attributes = 4;
  1620. if (has_attributes()) {
  1621. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  1622. 4, this->attributes(), output);
  1623. }
  1624. // required uint32 misc_select = 5;
  1625. if (has_misc_select()) {
  1626. ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->misc_select(), output);
  1627. }
  1628. output->WriteRaw(unknown_fields().data(),
  1629. unknown_fields().size());
  1630. // @@protoc_insertion_point(serialize_end:protobuf_sgx_target_info_t)
  1631. }
  1632. int protobuf_sgx_target_info_t::ByteSize() const {
  1633. int total_size = 0;
  1634. if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
  1635. // required .protobuf_sgx_attributes_t attributes = 4;
  1636. if (has_attributes()) {
  1637. total_size += 1 +
  1638. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1639. this->attributes());
  1640. }
  1641. // required uint32 misc_select = 5;
  1642. if (has_misc_select()) {
  1643. total_size += 1 +
  1644. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  1645. this->misc_select());
  1646. }
  1647. }
  1648. // repeated uint32 mr_enclave = 1 [packed = true];
  1649. {
  1650. int data_size = 0;
  1651. for (int i = 0; i < this->mr_enclave_size(); i++) {
  1652. data_size += ::google::protobuf::internal::WireFormatLite::
  1653. UInt32Size(this->mr_enclave(i));
  1654. }
  1655. if (data_size > 0) {
  1656. total_size += 1 +
  1657. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1658. }
  1659. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1660. _mr_enclave_cached_byte_size_ = data_size;
  1661. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1662. total_size += data_size;
  1663. }
  1664. // repeated uint32 reserved1 = 2 [packed = true];
  1665. {
  1666. int data_size = 0;
  1667. for (int i = 0; i < this->reserved1_size(); i++) {
  1668. data_size += ::google::protobuf::internal::WireFormatLite::
  1669. UInt32Size(this->reserved1(i));
  1670. }
  1671. if (data_size > 0) {
  1672. total_size += 1 +
  1673. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1674. }
  1675. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1676. _reserved1_cached_byte_size_ = data_size;
  1677. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1678. total_size += data_size;
  1679. }
  1680. // repeated uint32 reserved2 = 3 [packed = true];
  1681. {
  1682. int data_size = 0;
  1683. for (int i = 0; i < this->reserved2_size(); i++) {
  1684. data_size += ::google::protobuf::internal::WireFormatLite::
  1685. UInt32Size(this->reserved2(i));
  1686. }
  1687. if (data_size > 0) {
  1688. total_size += 1 +
  1689. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  1690. }
  1691. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1692. _reserved2_cached_byte_size_ = data_size;
  1693. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1694. total_size += data_size;
  1695. }
  1696. total_size += unknown_fields().size();
  1697. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1698. _cached_size_ = total_size;
  1699. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1700. return total_size;
  1701. }
  1702. void protobuf_sgx_target_info_t::CheckTypeAndMergeFrom(
  1703. const ::google::protobuf::MessageLite& from) {
  1704. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_target_info_t*>(&from));
  1705. }
  1706. void protobuf_sgx_target_info_t::MergeFrom(const protobuf_sgx_target_info_t& from) {
  1707. GOOGLE_CHECK_NE(&from, this);
  1708. mr_enclave_.MergeFrom(from.mr_enclave_);
  1709. reserved1_.MergeFrom(from.reserved1_);
  1710. reserved2_.MergeFrom(from.reserved2_);
  1711. if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
  1712. if (from.has_attributes()) {
  1713. mutable_attributes()->::protobuf_sgx_attributes_t::MergeFrom(from.attributes());
  1714. }
  1715. if (from.has_misc_select()) {
  1716. set_misc_select(from.misc_select());
  1717. }
  1718. }
  1719. mutable_unknown_fields()->append(from.unknown_fields());
  1720. }
  1721. void protobuf_sgx_target_info_t::CopyFrom(const protobuf_sgx_target_info_t& from) {
  1722. if (&from == this) return;
  1723. Clear();
  1724. MergeFrom(from);
  1725. }
  1726. bool protobuf_sgx_target_info_t::IsInitialized() const {
  1727. if ((_has_bits_[0] & 0x0000000a) != 0x0000000a) return false;
  1728. if (has_attributes()) {
  1729. if (!this->attributes().IsInitialized()) return false;
  1730. }
  1731. return true;
  1732. }
  1733. void protobuf_sgx_target_info_t::Swap(protobuf_sgx_target_info_t* other) {
  1734. if (other != this) {
  1735. mr_enclave_.Swap(&other->mr_enclave_);
  1736. std::swap(attributes_, other->attributes_);
  1737. reserved1_.Swap(&other->reserved1_);
  1738. std::swap(misc_select_, other->misc_select_);
  1739. reserved2_.Swap(&other->reserved2_);
  1740. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1741. _unknown_fields_.swap(other->_unknown_fields_);
  1742. std::swap(_cached_size_, other->_cached_size_);
  1743. }
  1744. }
  1745. ::std::string protobuf_sgx_target_info_t::GetTypeName() const {
  1746. return "protobuf_sgx_target_info_t";
  1747. }
  1748. // ===================================================================
  1749. #ifndef _MSC_VER
  1750. const int protobuf_sgx_dh_msg1_t::kGAFieldNumber;
  1751. const int protobuf_sgx_dh_msg1_t::kTargetFieldNumber;
  1752. #endif // !_MSC_VER
  1753. protobuf_sgx_dh_msg1_t::protobuf_sgx_dh_msg1_t()
  1754. : ::google::protobuf::MessageLite() {
  1755. SharedCtor();
  1756. // @@protoc_insertion_point(constructor:protobuf_sgx_dh_msg1_t)
  1757. }
  1758. void protobuf_sgx_dh_msg1_t::InitAsDefaultInstance() {
  1759. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1760. g_a_ = const_cast< ::protobuf_sgx_ec256_public_t*>(
  1761. ::protobuf_sgx_ec256_public_t::internal_default_instance());
  1762. #else
  1763. g_a_ = const_cast< ::protobuf_sgx_ec256_public_t*>(&::protobuf_sgx_ec256_public_t::default_instance());
  1764. #endif
  1765. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1766. target_ = const_cast< ::protobuf_sgx_target_info_t*>(
  1767. ::protobuf_sgx_target_info_t::internal_default_instance());
  1768. #else
  1769. target_ = const_cast< ::protobuf_sgx_target_info_t*>(&::protobuf_sgx_target_info_t::default_instance());
  1770. #endif
  1771. }
  1772. protobuf_sgx_dh_msg1_t::protobuf_sgx_dh_msg1_t(const protobuf_sgx_dh_msg1_t& from)
  1773. : ::google::protobuf::MessageLite() {
  1774. SharedCtor();
  1775. MergeFrom(from);
  1776. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_dh_msg1_t)
  1777. }
  1778. void protobuf_sgx_dh_msg1_t::SharedCtor() {
  1779. _cached_size_ = 0;
  1780. g_a_ = NULL;
  1781. target_ = NULL;
  1782. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1783. }
  1784. protobuf_sgx_dh_msg1_t::~protobuf_sgx_dh_msg1_t() {
  1785. // @@protoc_insertion_point(destructor:protobuf_sgx_dh_msg1_t)
  1786. SharedDtor();
  1787. }
  1788. void protobuf_sgx_dh_msg1_t::SharedDtor() {
  1789. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1790. if (this != &default_instance()) {
  1791. #else
  1792. if (this != default_instance_) {
  1793. #endif
  1794. delete g_a_;
  1795. delete target_;
  1796. }
  1797. }
  1798. void protobuf_sgx_dh_msg1_t::SetCachedSize(int size) const {
  1799. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1800. _cached_size_ = size;
  1801. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1802. }
  1803. const protobuf_sgx_dh_msg1_t& protobuf_sgx_dh_msg1_t::default_instance() {
  1804. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1805. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  1806. #else
  1807. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  1808. #endif
  1809. return *default_instance_;
  1810. }
  1811. protobuf_sgx_dh_msg1_t* protobuf_sgx_dh_msg1_t::default_instance_ = NULL;
  1812. protobuf_sgx_dh_msg1_t* protobuf_sgx_dh_msg1_t::New() const {
  1813. return new protobuf_sgx_dh_msg1_t;
  1814. }
  1815. void protobuf_sgx_dh_msg1_t::Clear() {
  1816. if (_has_bits_[0 / 32] & 3) {
  1817. if (has_g_a()) {
  1818. if (g_a_ != NULL) g_a_->::protobuf_sgx_ec256_public_t::Clear();
  1819. }
  1820. if (has_target()) {
  1821. if (target_ != NULL) target_->::protobuf_sgx_target_info_t::Clear();
  1822. }
  1823. }
  1824. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1825. mutable_unknown_fields()->clear();
  1826. }
  1827. bool protobuf_sgx_dh_msg1_t::MergePartialFromCodedStream(
  1828. ::google::protobuf::io::CodedInputStream* input) {
  1829. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  1830. ::google::protobuf::uint32 tag;
  1831. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  1832. mutable_unknown_fields());
  1833. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  1834. &unknown_fields_string);
  1835. // @@protoc_insertion_point(parse_start:protobuf_sgx_dh_msg1_t)
  1836. for (;;) {
  1837. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  1838. tag = p.first;
  1839. if (!p.second) goto handle_unusual;
  1840. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1841. // required .protobuf_sgx_ec256_public_t g_a = 1;
  1842. case 1: {
  1843. if (tag == 10) {
  1844. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1845. input, mutable_g_a()));
  1846. } else {
  1847. goto handle_unusual;
  1848. }
  1849. if (input->ExpectTag(18)) goto parse_target;
  1850. break;
  1851. }
  1852. // required .protobuf_sgx_target_info_t target = 2;
  1853. case 2: {
  1854. if (tag == 18) {
  1855. parse_target:
  1856. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1857. input, mutable_target()));
  1858. } else {
  1859. goto handle_unusual;
  1860. }
  1861. if (input->ExpectAtEnd()) goto success;
  1862. break;
  1863. }
  1864. default: {
  1865. handle_unusual:
  1866. if (tag == 0 ||
  1867. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1868. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1869. goto success;
  1870. }
  1871. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  1872. input, tag, &unknown_fields_stream));
  1873. break;
  1874. }
  1875. }
  1876. }
  1877. success:
  1878. // @@protoc_insertion_point(parse_success:protobuf_sgx_dh_msg1_t)
  1879. return true;
  1880. failure:
  1881. // @@protoc_insertion_point(parse_failure:protobuf_sgx_dh_msg1_t)
  1882. return false;
  1883. #undef DO_
  1884. }
  1885. void protobuf_sgx_dh_msg1_t::SerializeWithCachedSizes(
  1886. ::google::protobuf::io::CodedOutputStream* output) const {
  1887. // @@protoc_insertion_point(serialize_start:protobuf_sgx_dh_msg1_t)
  1888. // required .protobuf_sgx_ec256_public_t g_a = 1;
  1889. if (has_g_a()) {
  1890. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  1891. 1, this->g_a(), output);
  1892. }
  1893. // required .protobuf_sgx_target_info_t target = 2;
  1894. if (has_target()) {
  1895. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  1896. 2, this->target(), output);
  1897. }
  1898. output->WriteRaw(unknown_fields().data(),
  1899. unknown_fields().size());
  1900. // @@protoc_insertion_point(serialize_end:protobuf_sgx_dh_msg1_t)
  1901. }
  1902. int protobuf_sgx_dh_msg1_t::ByteSize() const {
  1903. int total_size = 0;
  1904. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1905. // required .protobuf_sgx_ec256_public_t g_a = 1;
  1906. if (has_g_a()) {
  1907. total_size += 1 +
  1908. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1909. this->g_a());
  1910. }
  1911. // required .protobuf_sgx_target_info_t target = 2;
  1912. if (has_target()) {
  1913. total_size += 1 +
  1914. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1915. this->target());
  1916. }
  1917. }
  1918. total_size += unknown_fields().size();
  1919. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1920. _cached_size_ = total_size;
  1921. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1922. return total_size;
  1923. }
  1924. void protobuf_sgx_dh_msg1_t::CheckTypeAndMergeFrom(
  1925. const ::google::protobuf::MessageLite& from) {
  1926. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_dh_msg1_t*>(&from));
  1927. }
  1928. void protobuf_sgx_dh_msg1_t::MergeFrom(const protobuf_sgx_dh_msg1_t& from) {
  1929. GOOGLE_CHECK_NE(&from, this);
  1930. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1931. if (from.has_g_a()) {
  1932. mutable_g_a()->::protobuf_sgx_ec256_public_t::MergeFrom(from.g_a());
  1933. }
  1934. if (from.has_target()) {
  1935. mutable_target()->::protobuf_sgx_target_info_t::MergeFrom(from.target());
  1936. }
  1937. }
  1938. mutable_unknown_fields()->append(from.unknown_fields());
  1939. }
  1940. void protobuf_sgx_dh_msg1_t::CopyFrom(const protobuf_sgx_dh_msg1_t& from) {
  1941. if (&from == this) return;
  1942. Clear();
  1943. MergeFrom(from);
  1944. }
  1945. bool protobuf_sgx_dh_msg1_t::IsInitialized() const {
  1946. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  1947. if (has_target()) {
  1948. if (!this->target().IsInitialized()) return false;
  1949. }
  1950. return true;
  1951. }
  1952. void protobuf_sgx_dh_msg1_t::Swap(protobuf_sgx_dh_msg1_t* other) {
  1953. if (other != this) {
  1954. std::swap(g_a_, other->g_a_);
  1955. std::swap(target_, other->target_);
  1956. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1957. _unknown_fields_.swap(other->_unknown_fields_);
  1958. std::swap(_cached_size_, other->_cached_size_);
  1959. }
  1960. }
  1961. ::std::string protobuf_sgx_dh_msg1_t::GetTypeName() const {
  1962. return "protobuf_sgx_dh_msg1_t";
  1963. }
  1964. // ===================================================================
  1965. #ifndef _MSC_VER
  1966. const int protobuf_sgx_dh_msg2_t::kGBFieldNumber;
  1967. const int protobuf_sgx_dh_msg2_t::kReportFieldNumber;
  1968. const int protobuf_sgx_dh_msg2_t::kCmacFieldNumber;
  1969. #endif // !_MSC_VER
  1970. protobuf_sgx_dh_msg2_t::protobuf_sgx_dh_msg2_t()
  1971. : ::google::protobuf::MessageLite() {
  1972. SharedCtor();
  1973. // @@protoc_insertion_point(constructor:protobuf_sgx_dh_msg2_t)
  1974. }
  1975. void protobuf_sgx_dh_msg2_t::InitAsDefaultInstance() {
  1976. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1977. g_b_ = const_cast< ::protobuf_sgx_ec256_public_t*>(
  1978. ::protobuf_sgx_ec256_public_t::internal_default_instance());
  1979. #else
  1980. g_b_ = const_cast< ::protobuf_sgx_ec256_public_t*>(&::protobuf_sgx_ec256_public_t::default_instance());
  1981. #endif
  1982. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  1983. report_ = const_cast< ::protobuf_sgx_report_t*>(
  1984. ::protobuf_sgx_report_t::internal_default_instance());
  1985. #else
  1986. report_ = const_cast< ::protobuf_sgx_report_t*>(&::protobuf_sgx_report_t::default_instance());
  1987. #endif
  1988. }
  1989. protobuf_sgx_dh_msg2_t::protobuf_sgx_dh_msg2_t(const protobuf_sgx_dh_msg2_t& from)
  1990. : ::google::protobuf::MessageLite() {
  1991. SharedCtor();
  1992. MergeFrom(from);
  1993. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_dh_msg2_t)
  1994. }
  1995. void protobuf_sgx_dh_msg2_t::SharedCtor() {
  1996. _cached_size_ = 0;
  1997. g_b_ = NULL;
  1998. report_ = NULL;
  1999. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2000. }
  2001. protobuf_sgx_dh_msg2_t::~protobuf_sgx_dh_msg2_t() {
  2002. // @@protoc_insertion_point(destructor:protobuf_sgx_dh_msg2_t)
  2003. SharedDtor();
  2004. }
  2005. void protobuf_sgx_dh_msg2_t::SharedDtor() {
  2006. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  2007. if (this != &default_instance()) {
  2008. #else
  2009. if (this != default_instance_) {
  2010. #endif
  2011. delete g_b_;
  2012. delete report_;
  2013. }
  2014. }
  2015. void protobuf_sgx_dh_msg2_t::SetCachedSize(int size) const {
  2016. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2017. _cached_size_ = size;
  2018. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2019. }
  2020. const protobuf_sgx_dh_msg2_t& protobuf_sgx_dh_msg2_t::default_instance() {
  2021. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  2022. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  2023. #else
  2024. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  2025. #endif
  2026. return *default_instance_;
  2027. }
  2028. protobuf_sgx_dh_msg2_t* protobuf_sgx_dh_msg2_t::default_instance_ = NULL;
  2029. protobuf_sgx_dh_msg2_t* protobuf_sgx_dh_msg2_t::New() const {
  2030. return new protobuf_sgx_dh_msg2_t;
  2031. }
  2032. void protobuf_sgx_dh_msg2_t::Clear() {
  2033. if (_has_bits_[0 / 32] & 3) {
  2034. if (has_g_b()) {
  2035. if (g_b_ != NULL) g_b_->::protobuf_sgx_ec256_public_t::Clear();
  2036. }
  2037. if (has_report()) {
  2038. if (report_ != NULL) report_->::protobuf_sgx_report_t::Clear();
  2039. }
  2040. }
  2041. cmac_.Clear();
  2042. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2043. mutable_unknown_fields()->clear();
  2044. }
  2045. bool protobuf_sgx_dh_msg2_t::MergePartialFromCodedStream(
  2046. ::google::protobuf::io::CodedInputStream* input) {
  2047. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  2048. ::google::protobuf::uint32 tag;
  2049. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  2050. mutable_unknown_fields());
  2051. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  2052. &unknown_fields_string);
  2053. // @@protoc_insertion_point(parse_start:protobuf_sgx_dh_msg2_t)
  2054. for (;;) {
  2055. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  2056. tag = p.first;
  2057. if (!p.second) goto handle_unusual;
  2058. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2059. // required .protobuf_sgx_ec256_public_t g_b = 1;
  2060. case 1: {
  2061. if (tag == 10) {
  2062. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2063. input, mutable_g_b()));
  2064. } else {
  2065. goto handle_unusual;
  2066. }
  2067. if (input->ExpectTag(18)) goto parse_report;
  2068. break;
  2069. }
  2070. // required .protobuf_sgx_report_t report = 2;
  2071. case 2: {
  2072. if (tag == 18) {
  2073. parse_report:
  2074. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2075. input, mutable_report()));
  2076. } else {
  2077. goto handle_unusual;
  2078. }
  2079. if (input->ExpectTag(26)) goto parse_cmac;
  2080. break;
  2081. }
  2082. // repeated uint32 cmac = 3 [packed = true];
  2083. case 3: {
  2084. if (tag == 26) {
  2085. parse_cmac:
  2086. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  2087. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  2088. input, this->mutable_cmac())));
  2089. } else if (tag == 24) {
  2090. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  2091. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  2092. 1, 26, input, this->mutable_cmac())));
  2093. } else {
  2094. goto handle_unusual;
  2095. }
  2096. if (input->ExpectAtEnd()) goto success;
  2097. break;
  2098. }
  2099. default: {
  2100. handle_unusual:
  2101. if (tag == 0 ||
  2102. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2103. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2104. goto success;
  2105. }
  2106. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  2107. input, tag, &unknown_fields_stream));
  2108. break;
  2109. }
  2110. }
  2111. }
  2112. success:
  2113. // @@protoc_insertion_point(parse_success:protobuf_sgx_dh_msg2_t)
  2114. return true;
  2115. failure:
  2116. // @@protoc_insertion_point(parse_failure:protobuf_sgx_dh_msg2_t)
  2117. return false;
  2118. #undef DO_
  2119. }
  2120. void protobuf_sgx_dh_msg2_t::SerializeWithCachedSizes(
  2121. ::google::protobuf::io::CodedOutputStream* output) const {
  2122. // @@protoc_insertion_point(serialize_start:protobuf_sgx_dh_msg2_t)
  2123. // required .protobuf_sgx_ec256_public_t g_b = 1;
  2124. if (has_g_b()) {
  2125. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  2126. 1, this->g_b(), output);
  2127. }
  2128. // required .protobuf_sgx_report_t report = 2;
  2129. if (has_report()) {
  2130. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  2131. 2, this->report(), output);
  2132. }
  2133. // repeated uint32 cmac = 3 [packed = true];
  2134. if (this->cmac_size() > 0) {
  2135. ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  2136. output->WriteVarint32(_cmac_cached_byte_size_);
  2137. }
  2138. for (int i = 0; i < this->cmac_size(); i++) {
  2139. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  2140. this->cmac(i), output);
  2141. }
  2142. output->WriteRaw(unknown_fields().data(),
  2143. unknown_fields().size());
  2144. // @@protoc_insertion_point(serialize_end:protobuf_sgx_dh_msg2_t)
  2145. }
  2146. int protobuf_sgx_dh_msg2_t::ByteSize() const {
  2147. int total_size = 0;
  2148. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2149. // required .protobuf_sgx_ec256_public_t g_b = 1;
  2150. if (has_g_b()) {
  2151. total_size += 1 +
  2152. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2153. this->g_b());
  2154. }
  2155. // required .protobuf_sgx_report_t report = 2;
  2156. if (has_report()) {
  2157. total_size += 1 +
  2158. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2159. this->report());
  2160. }
  2161. }
  2162. // repeated uint32 cmac = 3 [packed = true];
  2163. {
  2164. int data_size = 0;
  2165. for (int i = 0; i < this->cmac_size(); i++) {
  2166. data_size += ::google::protobuf::internal::WireFormatLite::
  2167. UInt32Size(this->cmac(i));
  2168. }
  2169. if (data_size > 0) {
  2170. total_size += 1 +
  2171. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  2172. }
  2173. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2174. _cmac_cached_byte_size_ = data_size;
  2175. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2176. total_size += data_size;
  2177. }
  2178. total_size += unknown_fields().size();
  2179. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2180. _cached_size_ = total_size;
  2181. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2182. return total_size;
  2183. }
  2184. void protobuf_sgx_dh_msg2_t::CheckTypeAndMergeFrom(
  2185. const ::google::protobuf::MessageLite& from) {
  2186. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_dh_msg2_t*>(&from));
  2187. }
  2188. void protobuf_sgx_dh_msg2_t::MergeFrom(const protobuf_sgx_dh_msg2_t& from) {
  2189. GOOGLE_CHECK_NE(&from, this);
  2190. cmac_.MergeFrom(from.cmac_);
  2191. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2192. if (from.has_g_b()) {
  2193. mutable_g_b()->::protobuf_sgx_ec256_public_t::MergeFrom(from.g_b());
  2194. }
  2195. if (from.has_report()) {
  2196. mutable_report()->::protobuf_sgx_report_t::MergeFrom(from.report());
  2197. }
  2198. }
  2199. mutable_unknown_fields()->append(from.unknown_fields());
  2200. }
  2201. void protobuf_sgx_dh_msg2_t::CopyFrom(const protobuf_sgx_dh_msg2_t& from) {
  2202. if (&from == this) return;
  2203. Clear();
  2204. MergeFrom(from);
  2205. }
  2206. bool protobuf_sgx_dh_msg2_t::IsInitialized() const {
  2207. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  2208. if (has_report()) {
  2209. if (!this->report().IsInitialized()) return false;
  2210. }
  2211. return true;
  2212. }
  2213. void protobuf_sgx_dh_msg2_t::Swap(protobuf_sgx_dh_msg2_t* other) {
  2214. if (other != this) {
  2215. std::swap(g_b_, other->g_b_);
  2216. std::swap(report_, other->report_);
  2217. cmac_.Swap(&other->cmac_);
  2218. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2219. _unknown_fields_.swap(other->_unknown_fields_);
  2220. std::swap(_cached_size_, other->_cached_size_);
  2221. }
  2222. }
  2223. ::std::string protobuf_sgx_dh_msg2_t::GetTypeName() const {
  2224. return "protobuf_sgx_dh_msg2_t";
  2225. }
  2226. // ===================================================================
  2227. #ifndef _MSC_VER
  2228. const int protobuf_sgx_dh_msg3_body_t::kReportFieldNumber;
  2229. const int protobuf_sgx_dh_msg3_body_t::kAdditionalPropFieldNumber;
  2230. #endif // !_MSC_VER
  2231. protobuf_sgx_dh_msg3_body_t::protobuf_sgx_dh_msg3_body_t()
  2232. : ::google::protobuf::MessageLite() {
  2233. SharedCtor();
  2234. // @@protoc_insertion_point(constructor:protobuf_sgx_dh_msg3_body_t)
  2235. }
  2236. void protobuf_sgx_dh_msg3_body_t::InitAsDefaultInstance() {
  2237. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  2238. report_ = const_cast< ::protobuf_sgx_report_t*>(
  2239. ::protobuf_sgx_report_t::internal_default_instance());
  2240. #else
  2241. report_ = const_cast< ::protobuf_sgx_report_t*>(&::protobuf_sgx_report_t::default_instance());
  2242. #endif
  2243. }
  2244. protobuf_sgx_dh_msg3_body_t::protobuf_sgx_dh_msg3_body_t(const protobuf_sgx_dh_msg3_body_t& from)
  2245. : ::google::protobuf::MessageLite() {
  2246. SharedCtor();
  2247. MergeFrom(from);
  2248. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_dh_msg3_body_t)
  2249. }
  2250. void protobuf_sgx_dh_msg3_body_t::SharedCtor() {
  2251. _cached_size_ = 0;
  2252. report_ = NULL;
  2253. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2254. }
  2255. protobuf_sgx_dh_msg3_body_t::~protobuf_sgx_dh_msg3_body_t() {
  2256. // @@protoc_insertion_point(destructor:protobuf_sgx_dh_msg3_body_t)
  2257. SharedDtor();
  2258. }
  2259. void protobuf_sgx_dh_msg3_body_t::SharedDtor() {
  2260. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  2261. if (this != &default_instance()) {
  2262. #else
  2263. if (this != default_instance_) {
  2264. #endif
  2265. delete report_;
  2266. }
  2267. }
  2268. void protobuf_sgx_dh_msg3_body_t::SetCachedSize(int size) const {
  2269. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2270. _cached_size_ = size;
  2271. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2272. }
  2273. const protobuf_sgx_dh_msg3_body_t& protobuf_sgx_dh_msg3_body_t::default_instance() {
  2274. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  2275. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  2276. #else
  2277. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  2278. #endif
  2279. return *default_instance_;
  2280. }
  2281. protobuf_sgx_dh_msg3_body_t* protobuf_sgx_dh_msg3_body_t::default_instance_ = NULL;
  2282. protobuf_sgx_dh_msg3_body_t* protobuf_sgx_dh_msg3_body_t::New() const {
  2283. return new protobuf_sgx_dh_msg3_body_t;
  2284. }
  2285. void protobuf_sgx_dh_msg3_body_t::Clear() {
  2286. if (has_report()) {
  2287. if (report_ != NULL) report_->::protobuf_sgx_report_t::Clear();
  2288. }
  2289. additional_prop_.Clear();
  2290. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2291. mutable_unknown_fields()->clear();
  2292. }
  2293. bool protobuf_sgx_dh_msg3_body_t::MergePartialFromCodedStream(
  2294. ::google::protobuf::io::CodedInputStream* input) {
  2295. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  2296. ::google::protobuf::uint32 tag;
  2297. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  2298. mutable_unknown_fields());
  2299. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  2300. &unknown_fields_string);
  2301. // @@protoc_insertion_point(parse_start:protobuf_sgx_dh_msg3_body_t)
  2302. for (;;) {
  2303. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  2304. tag = p.first;
  2305. if (!p.second) goto handle_unusual;
  2306. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2307. // required .protobuf_sgx_report_t report = 1;
  2308. case 1: {
  2309. if (tag == 10) {
  2310. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2311. input, mutable_report()));
  2312. } else {
  2313. goto handle_unusual;
  2314. }
  2315. if (input->ExpectTag(16)) goto parse_additional_prop;
  2316. break;
  2317. }
  2318. // repeated uint32 additional_prop = 2;
  2319. case 2: {
  2320. if (tag == 16) {
  2321. parse_additional_prop:
  2322. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  2323. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  2324. 1, 16, input, this->mutable_additional_prop())));
  2325. } else if (tag == 18) {
  2326. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  2327. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  2328. input, this->mutable_additional_prop())));
  2329. } else {
  2330. goto handle_unusual;
  2331. }
  2332. if (input->ExpectTag(16)) goto parse_additional_prop;
  2333. if (input->ExpectAtEnd()) goto success;
  2334. break;
  2335. }
  2336. default: {
  2337. handle_unusual:
  2338. if (tag == 0 ||
  2339. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2340. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2341. goto success;
  2342. }
  2343. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  2344. input, tag, &unknown_fields_stream));
  2345. break;
  2346. }
  2347. }
  2348. }
  2349. success:
  2350. // @@protoc_insertion_point(parse_success:protobuf_sgx_dh_msg3_body_t)
  2351. return true;
  2352. failure:
  2353. // @@protoc_insertion_point(parse_failure:protobuf_sgx_dh_msg3_body_t)
  2354. return false;
  2355. #undef DO_
  2356. }
  2357. void protobuf_sgx_dh_msg3_body_t::SerializeWithCachedSizes(
  2358. ::google::protobuf::io::CodedOutputStream* output) const {
  2359. // @@protoc_insertion_point(serialize_start:protobuf_sgx_dh_msg3_body_t)
  2360. // required .protobuf_sgx_report_t report = 1;
  2361. if (has_report()) {
  2362. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  2363. 1, this->report(), output);
  2364. }
  2365. // repeated uint32 additional_prop = 2;
  2366. for (int i = 0; i < this->additional_prop_size(); i++) {
  2367. ::google::protobuf::internal::WireFormatLite::WriteUInt32(
  2368. 2, this->additional_prop(i), output);
  2369. }
  2370. output->WriteRaw(unknown_fields().data(),
  2371. unknown_fields().size());
  2372. // @@protoc_insertion_point(serialize_end:protobuf_sgx_dh_msg3_body_t)
  2373. }
  2374. int protobuf_sgx_dh_msg3_body_t::ByteSize() const {
  2375. int total_size = 0;
  2376. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2377. // required .protobuf_sgx_report_t report = 1;
  2378. if (has_report()) {
  2379. total_size += 1 +
  2380. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2381. this->report());
  2382. }
  2383. }
  2384. // repeated uint32 additional_prop = 2;
  2385. {
  2386. int data_size = 0;
  2387. for (int i = 0; i < this->additional_prop_size(); i++) {
  2388. data_size += ::google::protobuf::internal::WireFormatLite::
  2389. UInt32Size(this->additional_prop(i));
  2390. }
  2391. total_size += 1 * this->additional_prop_size() + data_size;
  2392. }
  2393. total_size += unknown_fields().size();
  2394. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2395. _cached_size_ = total_size;
  2396. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2397. return total_size;
  2398. }
  2399. void protobuf_sgx_dh_msg3_body_t::CheckTypeAndMergeFrom(
  2400. const ::google::protobuf::MessageLite& from) {
  2401. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_dh_msg3_body_t*>(&from));
  2402. }
  2403. void protobuf_sgx_dh_msg3_body_t::MergeFrom(const protobuf_sgx_dh_msg3_body_t& from) {
  2404. GOOGLE_CHECK_NE(&from, this);
  2405. additional_prop_.MergeFrom(from.additional_prop_);
  2406. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2407. if (from.has_report()) {
  2408. mutable_report()->::protobuf_sgx_report_t::MergeFrom(from.report());
  2409. }
  2410. }
  2411. mutable_unknown_fields()->append(from.unknown_fields());
  2412. }
  2413. void protobuf_sgx_dh_msg3_body_t::CopyFrom(const protobuf_sgx_dh_msg3_body_t& from) {
  2414. if (&from == this) return;
  2415. Clear();
  2416. MergeFrom(from);
  2417. }
  2418. bool protobuf_sgx_dh_msg3_body_t::IsInitialized() const {
  2419. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  2420. if (has_report()) {
  2421. if (!this->report().IsInitialized()) return false;
  2422. }
  2423. return true;
  2424. }
  2425. void protobuf_sgx_dh_msg3_body_t::Swap(protobuf_sgx_dh_msg3_body_t* other) {
  2426. if (other != this) {
  2427. std::swap(report_, other->report_);
  2428. additional_prop_.Swap(&other->additional_prop_);
  2429. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2430. _unknown_fields_.swap(other->_unknown_fields_);
  2431. std::swap(_cached_size_, other->_cached_size_);
  2432. }
  2433. }
  2434. ::std::string protobuf_sgx_dh_msg3_body_t::GetTypeName() const {
  2435. return "protobuf_sgx_dh_msg3_body_t";
  2436. }
  2437. // ===================================================================
  2438. #ifndef _MSC_VER
  2439. const int protobuf_sgx_dh_msg3_t::kMsg3BodyFieldNumber;
  2440. const int protobuf_sgx_dh_msg3_t::kCmacFieldNumber;
  2441. #endif // !_MSC_VER
  2442. protobuf_sgx_dh_msg3_t::protobuf_sgx_dh_msg3_t()
  2443. : ::google::protobuf::MessageLite() {
  2444. SharedCtor();
  2445. // @@protoc_insertion_point(constructor:protobuf_sgx_dh_msg3_t)
  2446. }
  2447. void protobuf_sgx_dh_msg3_t::InitAsDefaultInstance() {
  2448. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  2449. msg3_body_ = const_cast< ::protobuf_sgx_dh_msg3_body_t*>(
  2450. ::protobuf_sgx_dh_msg3_body_t::internal_default_instance());
  2451. #else
  2452. msg3_body_ = const_cast< ::protobuf_sgx_dh_msg3_body_t*>(&::protobuf_sgx_dh_msg3_body_t::default_instance());
  2453. #endif
  2454. }
  2455. protobuf_sgx_dh_msg3_t::protobuf_sgx_dh_msg3_t(const protobuf_sgx_dh_msg3_t& from)
  2456. : ::google::protobuf::MessageLite() {
  2457. SharedCtor();
  2458. MergeFrom(from);
  2459. // @@protoc_insertion_point(copy_constructor:protobuf_sgx_dh_msg3_t)
  2460. }
  2461. void protobuf_sgx_dh_msg3_t::SharedCtor() {
  2462. _cached_size_ = 0;
  2463. msg3_body_ = NULL;
  2464. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2465. }
  2466. protobuf_sgx_dh_msg3_t::~protobuf_sgx_dh_msg3_t() {
  2467. // @@protoc_insertion_point(destructor:protobuf_sgx_dh_msg3_t)
  2468. SharedDtor();
  2469. }
  2470. void protobuf_sgx_dh_msg3_t::SharedDtor() {
  2471. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  2472. if (this != &default_instance()) {
  2473. #else
  2474. if (this != default_instance_) {
  2475. #endif
  2476. delete msg3_body_;
  2477. }
  2478. }
  2479. void protobuf_sgx_dh_msg3_t::SetCachedSize(int size) const {
  2480. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2481. _cached_size_ = size;
  2482. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2483. }
  2484. const protobuf_sgx_dh_msg3_t& protobuf_sgx_dh_msg3_t::default_instance() {
  2485. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  2486. protobuf_AddDesc_ProtobufLAMessages_2eproto();
  2487. #else
  2488. if (default_instance_ == NULL) protobuf_AddDesc_ProtobufLAMessages_2eproto();
  2489. #endif
  2490. return *default_instance_;
  2491. }
  2492. protobuf_sgx_dh_msg3_t* protobuf_sgx_dh_msg3_t::default_instance_ = NULL;
  2493. protobuf_sgx_dh_msg3_t* protobuf_sgx_dh_msg3_t::New() const {
  2494. return new protobuf_sgx_dh_msg3_t;
  2495. }
  2496. void protobuf_sgx_dh_msg3_t::Clear() {
  2497. if (has_msg3_body()) {
  2498. if (msg3_body_ != NULL) msg3_body_->::protobuf_sgx_dh_msg3_body_t::Clear();
  2499. }
  2500. cmac_.Clear();
  2501. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2502. mutable_unknown_fields()->clear();
  2503. }
  2504. bool protobuf_sgx_dh_msg3_t::MergePartialFromCodedStream(
  2505. ::google::protobuf::io::CodedInputStream* input) {
  2506. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  2507. ::google::protobuf::uint32 tag;
  2508. ::google::protobuf::io::StringOutputStream unknown_fields_string(
  2509. mutable_unknown_fields());
  2510. ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
  2511. &unknown_fields_string);
  2512. // @@protoc_insertion_point(parse_start:protobuf_sgx_dh_msg3_t)
  2513. for (;;) {
  2514. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  2515. tag = p.first;
  2516. if (!p.second) goto handle_unusual;
  2517. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2518. // required .protobuf_sgx_dh_msg3_body_t msg3_body = 1;
  2519. case 1: {
  2520. if (tag == 10) {
  2521. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2522. input, mutable_msg3_body()));
  2523. } else {
  2524. goto handle_unusual;
  2525. }
  2526. if (input->ExpectTag(18)) goto parse_cmac;
  2527. break;
  2528. }
  2529. // repeated uint32 cmac = 2 [packed = true];
  2530. case 2: {
  2531. if (tag == 18) {
  2532. parse_cmac:
  2533. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  2534. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  2535. input, this->mutable_cmac())));
  2536. } else if (tag == 16) {
  2537. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  2538. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  2539. 1, 18, input, this->mutable_cmac())));
  2540. } else {
  2541. goto handle_unusual;
  2542. }
  2543. if (input->ExpectAtEnd()) goto success;
  2544. break;
  2545. }
  2546. default: {
  2547. handle_unusual:
  2548. if (tag == 0 ||
  2549. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2550. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2551. goto success;
  2552. }
  2553. DO_(::google::protobuf::internal::WireFormatLite::SkipField(
  2554. input, tag, &unknown_fields_stream));
  2555. break;
  2556. }
  2557. }
  2558. }
  2559. success:
  2560. // @@protoc_insertion_point(parse_success:protobuf_sgx_dh_msg3_t)
  2561. return true;
  2562. failure:
  2563. // @@protoc_insertion_point(parse_failure:protobuf_sgx_dh_msg3_t)
  2564. return false;
  2565. #undef DO_
  2566. }
  2567. void protobuf_sgx_dh_msg3_t::SerializeWithCachedSizes(
  2568. ::google::protobuf::io::CodedOutputStream* output) const {
  2569. // @@protoc_insertion_point(serialize_start:protobuf_sgx_dh_msg3_t)
  2570. // required .protobuf_sgx_dh_msg3_body_t msg3_body = 1;
  2571. if (has_msg3_body()) {
  2572. ::google::protobuf::internal::WireFormatLite::WriteMessage(
  2573. 1, this->msg3_body(), output);
  2574. }
  2575. // repeated uint32 cmac = 2 [packed = true];
  2576. if (this->cmac_size() > 0) {
  2577. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  2578. output->WriteVarint32(_cmac_cached_byte_size_);
  2579. }
  2580. for (int i = 0; i < this->cmac_size(); i++) {
  2581. ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
  2582. this->cmac(i), output);
  2583. }
  2584. output->WriteRaw(unknown_fields().data(),
  2585. unknown_fields().size());
  2586. // @@protoc_insertion_point(serialize_end:protobuf_sgx_dh_msg3_t)
  2587. }
  2588. int protobuf_sgx_dh_msg3_t::ByteSize() const {
  2589. int total_size = 0;
  2590. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2591. // required .protobuf_sgx_dh_msg3_body_t msg3_body = 1;
  2592. if (has_msg3_body()) {
  2593. total_size += 1 +
  2594. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2595. this->msg3_body());
  2596. }
  2597. }
  2598. // repeated uint32 cmac = 2 [packed = true];
  2599. {
  2600. int data_size = 0;
  2601. for (int i = 0; i < this->cmac_size(); i++) {
  2602. data_size += ::google::protobuf::internal::WireFormatLite::
  2603. UInt32Size(this->cmac(i));
  2604. }
  2605. if (data_size > 0) {
  2606. total_size += 1 +
  2607. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  2608. }
  2609. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2610. _cmac_cached_byte_size_ = data_size;
  2611. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2612. total_size += data_size;
  2613. }
  2614. total_size += unknown_fields().size();
  2615. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2616. _cached_size_ = total_size;
  2617. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2618. return total_size;
  2619. }
  2620. void protobuf_sgx_dh_msg3_t::CheckTypeAndMergeFrom(
  2621. const ::google::protobuf::MessageLite& from) {
  2622. MergeFrom(*::google::protobuf::down_cast<const protobuf_sgx_dh_msg3_t*>(&from));
  2623. }
  2624. void protobuf_sgx_dh_msg3_t::MergeFrom(const protobuf_sgx_dh_msg3_t& from) {
  2625. GOOGLE_CHECK_NE(&from, this);
  2626. cmac_.MergeFrom(from.cmac_);
  2627. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2628. if (from.has_msg3_body()) {
  2629. mutable_msg3_body()->::protobuf_sgx_dh_msg3_body_t::MergeFrom(from.msg3_body());
  2630. }
  2631. }
  2632. mutable_unknown_fields()->append(from.unknown_fields());
  2633. }
  2634. void protobuf_sgx_dh_msg3_t::CopyFrom(const protobuf_sgx_dh_msg3_t& from) {
  2635. if (&from == this) return;
  2636. Clear();
  2637. MergeFrom(from);
  2638. }
  2639. bool protobuf_sgx_dh_msg3_t::IsInitialized() const {
  2640. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  2641. if (has_msg3_body()) {
  2642. if (!this->msg3_body().IsInitialized()) return false;
  2643. }
  2644. return true;
  2645. }
  2646. void protobuf_sgx_dh_msg3_t::Swap(protobuf_sgx_dh_msg3_t* other) {
  2647. if (other != this) {
  2648. std::swap(msg3_body_, other->msg3_body_);
  2649. cmac_.Swap(&other->cmac_);
  2650. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2651. _unknown_fields_.swap(other->_unknown_fields_);
  2652. std::swap(_cached_size_, other->_cached_size_);
  2653. }
  2654. }
  2655. ::std::string protobuf_sgx_dh_msg3_t::GetTypeName() const {
  2656. return "protobuf_sgx_dh_msg3_t";
  2657. }
  2658. // @@protoc_insertion_point(namespace_scope)
  2659. // @@protoc_insertion_point(global_scope)