|
@@ -1,3809 +0,0 @@
|
|
|
-// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
-// source: ProtobufLAMessages.proto
|
|
|
-
|
|
|
-#include "ProtobufLAMessages.pb.h"
|
|
|
-
|
|
|
-#include <algorithm>
|
|
|
-
|
|
|
-#include <google/protobuf/io/coded_stream.h>
|
|
|
-#include <google/protobuf/extension_set.h>
|
|
|
-#include <google/protobuf/wire_format_lite.h>
|
|
|
-#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
|
|
|
-// @@protoc_insertion_point(includes)
|
|
|
-#include <google/protobuf/port_def.inc>
|
|
|
-extern PROTOBUF_INTERNAL_EXPORT_ProtobufLAMessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_protobuf_sgx_attributes_t_ProtobufLAMessages_2eproto;
|
|
|
-extern PROTOBUF_INTERNAL_EXPORT_ProtobufLAMessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_dh_msg3_body_t_ProtobufLAMessages_2eproto;
|
|
|
-extern PROTOBUF_INTERNAL_EXPORT_ProtobufLAMessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_protobuf_sgx_ec256_public_t_ProtobufLAMessages_2eproto;
|
|
|
-extern PROTOBUF_INTERNAL_EXPORT_ProtobufLAMessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_report_body_t_ProtobufLAMessages_2eproto;
|
|
|
-extern PROTOBUF_INTERNAL_EXPORT_ProtobufLAMessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_report_t_ProtobufLAMessages_2eproto;
|
|
|
-extern PROTOBUF_INTERNAL_EXPORT_ProtobufLAMessages_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_target_info_t_ProtobufLAMessages_2eproto;
|
|
|
-class protobuf_sgx_attributes_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_attributes_t> _instance;
|
|
|
-} _protobuf_sgx_attributes_t_default_instance_;
|
|
|
-class protobuf_sgx_ec256_public_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_ec256_public_t> _instance;
|
|
|
-} _protobuf_sgx_ec256_public_t_default_instance_;
|
|
|
-class protobuf_sgx_report_body_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_report_body_t> _instance;
|
|
|
-} _protobuf_sgx_report_body_t_default_instance_;
|
|
|
-class protobuf_sgx_report_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_report_t> _instance;
|
|
|
-} _protobuf_sgx_report_t_default_instance_;
|
|
|
-class protobuf_sgx_target_info_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_target_info_t> _instance;
|
|
|
-} _protobuf_sgx_target_info_t_default_instance_;
|
|
|
-class protobuf_sgx_dh_msg1_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_dh_msg1_t> _instance;
|
|
|
-} _protobuf_sgx_dh_msg1_t_default_instance_;
|
|
|
-class protobuf_sgx_dh_msg2_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_dh_msg2_t> _instance;
|
|
|
-} _protobuf_sgx_dh_msg2_t_default_instance_;
|
|
|
-class protobuf_sgx_dh_msg3_body_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_dh_msg3_body_t> _instance;
|
|
|
-} _protobuf_sgx_dh_msg3_body_t_default_instance_;
|
|
|
-class protobuf_sgx_dh_msg3_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_sgx_dh_msg3_t> _instance;
|
|
|
-} _protobuf_sgx_dh_msg3_t_default_instance_;
|
|
|
-class protobuf_post_LA_encrypted_msg_tDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<protobuf_post_LA_encrypted_msg_t> _instance;
|
|
|
-} _protobuf_post_LA_encrypted_msg_t_default_instance_;
|
|
|
-static void InitDefaultsscc_info_protobuf_post_LA_encrypted_msg_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_post_LA_encrypted_msg_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_post_LA_encrypted_msg_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_post_LA_encrypted_msg_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_protobuf_post_LA_encrypted_msg_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_protobuf_post_LA_encrypted_msg_t_ProtobufLAMessages_2eproto}, {}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_attributes_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_attributes_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_attributes_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_attributes_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_protobuf_sgx_attributes_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_protobuf_sgx_attributes_t_ProtobufLAMessages_2eproto}, {}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_dh_msg1_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_dh_msg1_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_dh_msg1_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_dh_msg1_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_protobuf_sgx_dh_msg1_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_protobuf_sgx_dh_msg1_t_ProtobufLAMessages_2eproto}, {
|
|
|
- &scc_info_protobuf_sgx_ec256_public_t_ProtobufLAMessages_2eproto.base,
|
|
|
- &scc_info_protobuf_sgx_target_info_t_ProtobufLAMessages_2eproto.base,}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_dh_msg2_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_dh_msg2_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_dh_msg2_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_dh_msg2_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_protobuf_sgx_dh_msg2_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_protobuf_sgx_dh_msg2_t_ProtobufLAMessages_2eproto}, {
|
|
|
- &scc_info_protobuf_sgx_ec256_public_t_ProtobufLAMessages_2eproto.base,
|
|
|
- &scc_info_protobuf_sgx_report_t_ProtobufLAMessages_2eproto.base,}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_dh_msg3_body_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_dh_msg3_body_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_dh_msg3_body_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_dh_msg3_body_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_dh_msg3_body_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_protobuf_sgx_dh_msg3_body_t_ProtobufLAMessages_2eproto}, {
|
|
|
- &scc_info_protobuf_sgx_report_t_ProtobufLAMessages_2eproto.base,}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_dh_msg3_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_dh_msg3_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_dh_msg3_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_dh_msg3_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_dh_msg3_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_protobuf_sgx_dh_msg3_t_ProtobufLAMessages_2eproto}, {
|
|
|
- &scc_info_protobuf_sgx_dh_msg3_body_t_ProtobufLAMessages_2eproto.base,}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_ec256_public_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_ec256_public_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_ec256_public_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_ec256_public_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_protobuf_sgx_ec256_public_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_protobuf_sgx_ec256_public_t_ProtobufLAMessages_2eproto}, {}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_report_body_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_report_body_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_report_body_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_report_body_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_report_body_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_protobuf_sgx_report_body_t_ProtobufLAMessages_2eproto}, {
|
|
|
- &scc_info_protobuf_sgx_attributes_t_ProtobufLAMessages_2eproto.base,}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_report_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_report_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_report_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_report_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_report_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_protobuf_sgx_report_t_ProtobufLAMessages_2eproto}, {
|
|
|
- &scc_info_protobuf_sgx_report_body_t_ProtobufLAMessages_2eproto.base,}};
|
|
|
-
|
|
|
-static void InitDefaultsscc_info_protobuf_sgx_target_info_t_ProtobufLAMessages_2eproto() {
|
|
|
- GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
-
|
|
|
- {
|
|
|
- void* ptr = &::_protobuf_sgx_target_info_t_default_instance_;
|
|
|
- new (ptr) ::protobuf_sgx_target_info_t();
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::protobuf_sgx_target_info_t::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_protobuf_sgx_target_info_t_ProtobufLAMessages_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_protobuf_sgx_target_info_t_ProtobufLAMessages_2eproto}, {
|
|
|
- &scc_info_protobuf_sgx_attributes_t_ProtobufLAMessages_2eproto.base,}};
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::InitAsDefaultInstance() {
|
|
|
-}
|
|
|
-class protobuf_sgx_attributes_t::_Internal {
|
|
|
- public:
|
|
|
-};
|
|
|
-
|
|
|
-protobuf_sgx_attributes_t::protobuf_sgx_attributes_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_attributes_t)
|
|
|
-}
|
|
|
-protobuf_sgx_attributes_t::protobuf_sgx_attributes_t(const protobuf_sgx_attributes_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::memcpy(&flags_, &from.flags_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&xfrm_) -
|
|
|
- reinterpret_cast<char*>(&flags_)) + sizeof(xfrm_));
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_attributes_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::SharedCtor() {
|
|
|
- ::memset(&flags_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&xfrm_) -
|
|
|
- reinterpret_cast<char*>(&flags_)) + sizeof(xfrm_));
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_attributes_t::~protobuf_sgx_attributes_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_attributes_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::SharedDtor() {
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_attributes_t& protobuf_sgx_attributes_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_attributes_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_attributes_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- ::memset(&flags_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&xfrm_) -
|
|
|
- reinterpret_cast<char*>(&flags_)) + sizeof(xfrm_));
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_attributes_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // uint64 flags = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
- flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // uint64 xfrm = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
- xfrm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_attributes_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_attributes_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // uint64 flags = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
-
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
|
|
|
- input, &flags_)));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // uint64 xfrm = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
-
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
|
|
|
- input, &xfrm_)));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_attributes_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_attributes_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_attributes_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_attributes_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // uint64 flags = 1;
|
|
|
- if (this->flags() != 0) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->flags(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // uint64 xfrm = 2;
|
|
|
- if (this->xfrm() != 0) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->xfrm(), target);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_attributes_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_attributes_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_attributes_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // uint64 flags = 1;
|
|
|
- if (this->flags() != 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
|
- this->flags());
|
|
|
- }
|
|
|
-
|
|
|
- // uint64 xfrm = 2;
|
|
|
- if (this->xfrm() != 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
|
- this->xfrm());
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_attributes_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::MergeFrom(const protobuf_sgx_attributes_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_attributes_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- if (from.flags() != 0) {
|
|
|
- set_flags(from.flags());
|
|
|
- }
|
|
|
- if (from.xfrm() != 0) {
|
|
|
- set_xfrm(from.xfrm());
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::CopyFrom(const protobuf_sgx_attributes_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_attributes_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_attributes_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_attributes_t::InternalSwap(protobuf_sgx_attributes_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(flags_, other->flags_);
|
|
|
- swap(xfrm_, other->xfrm_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_attributes_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_attributes_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::InitAsDefaultInstance() {
|
|
|
-}
|
|
|
-class protobuf_sgx_ec256_public_t::_Internal {
|
|
|
- public:
|
|
|
-};
|
|
|
-
|
|
|
-protobuf_sgx_ec256_public_t::protobuf_sgx_ec256_public_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_ec256_public_t)
|
|
|
-}
|
|
|
-protobuf_sgx_ec256_public_t::protobuf_sgx_ec256_public_t(const protobuf_sgx_ec256_public_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr),
|
|
|
- gx_(from.gx_),
|
|
|
- gy_(from.gy_) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_ec256_public_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::SharedCtor() {
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_ec256_public_t::~protobuf_sgx_ec256_public_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_ec256_public_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::SharedDtor() {
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_ec256_public_t& protobuf_sgx_ec256_public_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_ec256_public_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_ec256_public_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- gx_.Clear();
|
|
|
- gy_.Clear();
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_ec256_public_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // repeated uint32 gx = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_gx(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
|
|
|
- add_gx(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 gy = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_gy(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
|
|
|
- add_gy(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_ec256_public_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_ec256_public_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // repeated uint32 gx = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_gx())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 10u, input, this->mutable_gx())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 gy = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_gy())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 18u, input, this->mutable_gy())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_ec256_public_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_ec256_public_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_ec256_public_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_ec256_public_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 gx = 1;
|
|
|
- {
|
|
|
- int byte_size = _gx_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 1, gx_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 gy = 2;
|
|
|
- {
|
|
|
- int byte_size = _gy_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 2, gy_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_ec256_public_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_ec256_public_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_ec256_public_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 gx = 1;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->gx_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _gx_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 gy = 2;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->gy_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _gy_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_ec256_public_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::MergeFrom(const protobuf_sgx_ec256_public_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_ec256_public_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- gx_.MergeFrom(from.gx_);
|
|
|
- gy_.MergeFrom(from.gy_);
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::CopyFrom(const protobuf_sgx_ec256_public_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_ec256_public_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_ec256_public_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_ec256_public_t::InternalSwap(protobuf_sgx_ec256_public_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- gx_.InternalSwap(&other->gx_);
|
|
|
- gy_.InternalSwap(&other->gy_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_ec256_public_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_ec256_public_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::InitAsDefaultInstance() {
|
|
|
- ::_protobuf_sgx_report_body_t_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::protobuf_sgx_attributes_t*>(
|
|
|
- ::protobuf_sgx_attributes_t::internal_default_instance());
|
|
|
-}
|
|
|
-class protobuf_sgx_report_body_t::_Internal {
|
|
|
- public:
|
|
|
- static const ::protobuf_sgx_attributes_t& attributes(const protobuf_sgx_report_body_t* msg);
|
|
|
-};
|
|
|
-
|
|
|
-const ::protobuf_sgx_attributes_t&
|
|
|
-protobuf_sgx_report_body_t::_Internal::attributes(const protobuf_sgx_report_body_t* msg) {
|
|
|
- return *msg->attributes_;
|
|
|
-}
|
|
|
-protobuf_sgx_report_body_t::protobuf_sgx_report_body_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_report_body_t)
|
|
|
-}
|
|
|
-protobuf_sgx_report_body_t::protobuf_sgx_report_body_t(const protobuf_sgx_report_body_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr),
|
|
|
- cpu_svn_(from.cpu_svn_),
|
|
|
- reserved1_(from.reserved1_),
|
|
|
- mr_enclave_(from.mr_enclave_),
|
|
|
- reserved2_(from.reserved2_),
|
|
|
- mr_signer_(from.mr_signer_),
|
|
|
- reserved3_(from.reserved3_),
|
|
|
- reserved4_(from.reserved4_),
|
|
|
- report_data_(from.report_data_) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_attributes()) {
|
|
|
- attributes_ = new ::protobuf_sgx_attributes_t(*from.attributes_);
|
|
|
- } else {
|
|
|
- attributes_ = nullptr;
|
|
|
- }
|
|
|
- ::memcpy(&misc_select_, &from.misc_select_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&isv_svn_) -
|
|
|
- reinterpret_cast<char*>(&misc_select_)) + sizeof(isv_svn_));
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_report_body_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::SharedCtor() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_protobuf_sgx_report_body_t_ProtobufLAMessages_2eproto.base);
|
|
|
- ::memset(&attributes_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&isv_svn_) -
|
|
|
- reinterpret_cast<char*>(&attributes_)) + sizeof(isv_svn_));
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_report_body_t::~protobuf_sgx_report_body_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_report_body_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete attributes_;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_report_body_t& protobuf_sgx_report_body_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_report_body_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_report_body_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- cpu_svn_.Clear();
|
|
|
- reserved1_.Clear();
|
|
|
- mr_enclave_.Clear();
|
|
|
- reserved2_.Clear();
|
|
|
- mr_signer_.Clear();
|
|
|
- reserved3_.Clear();
|
|
|
- reserved4_.Clear();
|
|
|
- report_data_.Clear();
|
|
|
- if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) {
|
|
|
- delete attributes_;
|
|
|
- }
|
|
|
- attributes_ = nullptr;
|
|
|
- ::memset(&misc_select_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&isv_svn_) -
|
|
|
- reinterpret_cast<char*>(&misc_select_)) + sizeof(isv_svn_));
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_report_body_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // repeated uint32 cpu_svn = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_cpu_svn(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
|
|
|
- add_cpu_svn(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 reserved1 = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_reserved1(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
|
|
|
- add_reserved1(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 mr_enclave = 3;
|
|
|
- case 3:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_mr_enclave(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
|
|
|
- add_mr_enclave(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 reserved2 = 4;
|
|
|
- case 4:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_reserved2(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) {
|
|
|
- add_reserved2(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 mr_signer = 5;
|
|
|
- case 5:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_mr_signer(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40) {
|
|
|
- add_mr_signer(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 reserved3 = 6;
|
|
|
- case 6:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_reserved3(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48) {
|
|
|
- add_reserved3(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 reserved4 = 7;
|
|
|
- case 7:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_reserved4(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56) {
|
|
|
- add_reserved4(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 report_data = 8;
|
|
|
- case 8:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_report_data(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64) {
|
|
|
- add_report_data(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // uint32 misc_select = 9;
|
|
|
- case 9:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
|
|
|
- misc_select_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // .protobuf_sgx_attributes_t attributes = 10;
|
|
|
- case 10:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_attributes(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // uint32 isv_prod_id = 11;
|
|
|
- case 11:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
|
|
|
- isv_prod_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // uint32 isv_svn = 12;
|
|
|
- case 12:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
|
|
|
- isv_svn_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_report_body_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_report_body_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // repeated uint32 cpu_svn = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_cpu_svn())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 10u, input, this->mutable_cpu_svn())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved1 = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_reserved1())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 18u, input, this->mutable_reserved1())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mr_enclave = 3;
|
|
|
- case 3: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_mr_enclave())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 26u, input, this->mutable_mr_enclave())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved2 = 4;
|
|
|
- case 4: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_reserved2())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 34u, input, this->mutable_reserved2())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mr_signer = 5;
|
|
|
- case 5: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_mr_signer())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 42u, input, this->mutable_mr_signer())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved3 = 6;
|
|
|
- case 6: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_reserved3())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 50u, input, this->mutable_reserved3())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved4 = 7;
|
|
|
- case 7: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_reserved4())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 58u, input, this->mutable_reserved4())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 report_data = 8;
|
|
|
- case 8: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_report_data())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 66u, input, this->mutable_report_data())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 misc_select = 9;
|
|
|
- case 9: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
|
|
|
-
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, &misc_select_)));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_attributes_t attributes = 10;
|
|
|
- case 10: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_attributes()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 isv_prod_id = 11;
|
|
|
- case 11: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) {
|
|
|
-
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, &isv_prod_id_)));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 isv_svn = 12;
|
|
|
- case 12: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (96 & 0xFF)) {
|
|
|
-
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, &isv_svn_)));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_report_body_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_report_body_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_report_body_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_report_body_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 cpu_svn = 1;
|
|
|
- {
|
|
|
- int byte_size = _cpu_svn_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 1, cpu_svn_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved1 = 2;
|
|
|
- {
|
|
|
- int byte_size = _reserved1_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 2, reserved1_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mr_enclave = 3;
|
|
|
- {
|
|
|
- int byte_size = _mr_enclave_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 3, mr_enclave_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved2 = 4;
|
|
|
- {
|
|
|
- int byte_size = _reserved2_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 4, reserved2_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mr_signer = 5;
|
|
|
- {
|
|
|
- int byte_size = _mr_signer_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 5, mr_signer_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved3 = 6;
|
|
|
- {
|
|
|
- int byte_size = _reserved3_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 6, reserved3_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved4 = 7;
|
|
|
- {
|
|
|
- int byte_size = _reserved4_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 7, reserved4_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 report_data = 8;
|
|
|
- {
|
|
|
- int byte_size = _report_data_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 8, report_data_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 misc_select = 9;
|
|
|
- if (this->misc_select() != 0) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(9, this->misc_select(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_attributes_t attributes = 10;
|
|
|
- if (this->has_attributes()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 10, _Internal::attributes(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 isv_prod_id = 11;
|
|
|
- if (this->isv_prod_id() != 0) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(11, this->isv_prod_id(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 isv_svn = 12;
|
|
|
- if (this->isv_svn() != 0) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(12, this->isv_svn(), target);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_report_body_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_report_body_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_report_body_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 cpu_svn = 1;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->cpu_svn_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _cpu_svn_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved1 = 2;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->reserved1_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _reserved1_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mr_enclave = 3;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->mr_enclave_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _mr_enclave_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved2 = 4;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->reserved2_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _reserved2_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mr_signer = 5;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->mr_signer_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _mr_signer_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved3 = 6;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->reserved3_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _reserved3_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved4 = 7;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->reserved4_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _reserved4_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 report_data = 8;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->report_data_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _report_data_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_attributes_t attributes = 10;
|
|
|
- if (this->has_attributes()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *attributes_);
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 misc_select = 9;
|
|
|
- if (this->misc_select() != 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
- this->misc_select());
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 isv_prod_id = 11;
|
|
|
- if (this->isv_prod_id() != 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
- this->isv_prod_id());
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 isv_svn = 12;
|
|
|
- if (this->isv_svn() != 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
- this->isv_svn());
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_report_body_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::MergeFrom(const protobuf_sgx_report_body_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_report_body_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- cpu_svn_.MergeFrom(from.cpu_svn_);
|
|
|
- reserved1_.MergeFrom(from.reserved1_);
|
|
|
- mr_enclave_.MergeFrom(from.mr_enclave_);
|
|
|
- reserved2_.MergeFrom(from.reserved2_);
|
|
|
- mr_signer_.MergeFrom(from.mr_signer_);
|
|
|
- reserved3_.MergeFrom(from.reserved3_);
|
|
|
- reserved4_.MergeFrom(from.reserved4_);
|
|
|
- report_data_.MergeFrom(from.report_data_);
|
|
|
- if (from.has_attributes()) {
|
|
|
- mutable_attributes()->::protobuf_sgx_attributes_t::MergeFrom(from.attributes());
|
|
|
- }
|
|
|
- if (from.misc_select() != 0) {
|
|
|
- set_misc_select(from.misc_select());
|
|
|
- }
|
|
|
- if (from.isv_prod_id() != 0) {
|
|
|
- set_isv_prod_id(from.isv_prod_id());
|
|
|
- }
|
|
|
- if (from.isv_svn() != 0) {
|
|
|
- set_isv_svn(from.isv_svn());
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::CopyFrom(const protobuf_sgx_report_body_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_report_body_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_report_body_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_body_t::InternalSwap(protobuf_sgx_report_body_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- cpu_svn_.InternalSwap(&other->cpu_svn_);
|
|
|
- reserved1_.InternalSwap(&other->reserved1_);
|
|
|
- mr_enclave_.InternalSwap(&other->mr_enclave_);
|
|
|
- reserved2_.InternalSwap(&other->reserved2_);
|
|
|
- mr_signer_.InternalSwap(&other->mr_signer_);
|
|
|
- reserved3_.InternalSwap(&other->reserved3_);
|
|
|
- reserved4_.InternalSwap(&other->reserved4_);
|
|
|
- report_data_.InternalSwap(&other->report_data_);
|
|
|
- swap(attributes_, other->attributes_);
|
|
|
- swap(misc_select_, other->misc_select_);
|
|
|
- swap(isv_prod_id_, other->isv_prod_id_);
|
|
|
- swap(isv_svn_, other->isv_svn_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_report_body_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_report_body_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::InitAsDefaultInstance() {
|
|
|
- ::_protobuf_sgx_report_t_default_instance_._instance.get_mutable()->body_ = const_cast< ::protobuf_sgx_report_body_t*>(
|
|
|
- ::protobuf_sgx_report_body_t::internal_default_instance());
|
|
|
-}
|
|
|
-class protobuf_sgx_report_t::_Internal {
|
|
|
- public:
|
|
|
- static const ::protobuf_sgx_report_body_t& body(const protobuf_sgx_report_t* msg);
|
|
|
-};
|
|
|
-
|
|
|
-const ::protobuf_sgx_report_body_t&
|
|
|
-protobuf_sgx_report_t::_Internal::body(const protobuf_sgx_report_t* msg) {
|
|
|
- return *msg->body_;
|
|
|
-}
|
|
|
-protobuf_sgx_report_t::protobuf_sgx_report_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_report_t)
|
|
|
-}
|
|
|
-protobuf_sgx_report_t::protobuf_sgx_report_t(const protobuf_sgx_report_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr),
|
|
|
- key_id_(from.key_id_),
|
|
|
- mac_(from.mac_) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_body()) {
|
|
|
- body_ = new ::protobuf_sgx_report_body_t(*from.body_);
|
|
|
- } else {
|
|
|
- body_ = nullptr;
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_report_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::SharedCtor() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_protobuf_sgx_report_t_ProtobufLAMessages_2eproto.base);
|
|
|
- body_ = nullptr;
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_report_t::~protobuf_sgx_report_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_report_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete body_;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_report_t& protobuf_sgx_report_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_report_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_report_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- key_id_.Clear();
|
|
|
- mac_.Clear();
|
|
|
- if (GetArenaNoVirtual() == nullptr && body_ != nullptr) {
|
|
|
- delete body_;
|
|
|
- }
|
|
|
- body_ = nullptr;
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_report_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // .protobuf_sgx_report_body_t body = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_body(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 key_id = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_key_id(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
|
|
|
- add_key_id(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 mac = 3;
|
|
|
- case 3:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_mac(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
|
|
|
- add_mac(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_report_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_report_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // .protobuf_sgx_report_body_t body = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_body()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 key_id = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_key_id())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 18u, input, this->mutable_key_id())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mac = 3;
|
|
|
- case 3: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_mac())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 26u, input, this->mutable_mac())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_report_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_report_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_report_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_report_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // .protobuf_sgx_report_body_t body = 1;
|
|
|
- if (this->has_body()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 1, _Internal::body(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 key_id = 2;
|
|
|
- {
|
|
|
- int byte_size = _key_id_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 2, key_id_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mac = 3;
|
|
|
- {
|
|
|
- int byte_size = _mac_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 3, mac_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_report_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_report_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_report_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 key_id = 2;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->key_id_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _key_id_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 mac = 3;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->mac_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _mac_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_report_body_t body = 1;
|
|
|
- if (this->has_body()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *body_);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_report_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::MergeFrom(const protobuf_sgx_report_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_report_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- key_id_.MergeFrom(from.key_id_);
|
|
|
- mac_.MergeFrom(from.mac_);
|
|
|
- if (from.has_body()) {
|
|
|
- mutable_body()->::protobuf_sgx_report_body_t::MergeFrom(from.body());
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::CopyFrom(const protobuf_sgx_report_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_report_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_report_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_report_t::InternalSwap(protobuf_sgx_report_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- key_id_.InternalSwap(&other->key_id_);
|
|
|
- mac_.InternalSwap(&other->mac_);
|
|
|
- swap(body_, other->body_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_report_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_report_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::InitAsDefaultInstance() {
|
|
|
- ::_protobuf_sgx_target_info_t_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::protobuf_sgx_attributes_t*>(
|
|
|
- ::protobuf_sgx_attributes_t::internal_default_instance());
|
|
|
-}
|
|
|
-class protobuf_sgx_target_info_t::_Internal {
|
|
|
- public:
|
|
|
- static const ::protobuf_sgx_attributes_t& attributes(const protobuf_sgx_target_info_t* msg);
|
|
|
-};
|
|
|
-
|
|
|
-const ::protobuf_sgx_attributes_t&
|
|
|
-protobuf_sgx_target_info_t::_Internal::attributes(const protobuf_sgx_target_info_t* msg) {
|
|
|
- return *msg->attributes_;
|
|
|
-}
|
|
|
-protobuf_sgx_target_info_t::protobuf_sgx_target_info_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_target_info_t)
|
|
|
-}
|
|
|
-protobuf_sgx_target_info_t::protobuf_sgx_target_info_t(const protobuf_sgx_target_info_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr),
|
|
|
- mr_enclave_(from.mr_enclave_),
|
|
|
- reserved1_(from.reserved1_),
|
|
|
- reserved2_(from.reserved2_) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_attributes()) {
|
|
|
- attributes_ = new ::protobuf_sgx_attributes_t(*from.attributes_);
|
|
|
- } else {
|
|
|
- attributes_ = nullptr;
|
|
|
- }
|
|
|
- misc_select_ = from.misc_select_;
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_target_info_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::SharedCtor() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_protobuf_sgx_target_info_t_ProtobufLAMessages_2eproto.base);
|
|
|
- ::memset(&attributes_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&misc_select_) -
|
|
|
- reinterpret_cast<char*>(&attributes_)) + sizeof(misc_select_));
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_target_info_t::~protobuf_sgx_target_info_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_target_info_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete attributes_;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_target_info_t& protobuf_sgx_target_info_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_target_info_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_target_info_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- mr_enclave_.Clear();
|
|
|
- reserved1_.Clear();
|
|
|
- reserved2_.Clear();
|
|
|
- if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) {
|
|
|
- delete attributes_;
|
|
|
- }
|
|
|
- attributes_ = nullptr;
|
|
|
- misc_select_ = 0u;
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_target_info_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // repeated uint32 mr_enclave = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_mr_enclave(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) {
|
|
|
- add_mr_enclave(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 reserved1 = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_reserved1(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
|
|
|
- add_reserved1(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 reserved2 = 3;
|
|
|
- case 3:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_reserved2(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
|
|
|
- add_reserved2(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // .protobuf_sgx_attributes_t attributes = 4;
|
|
|
- case 4:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_attributes(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // uint32 misc_select = 5;
|
|
|
- case 5:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
|
- misc_select_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_target_info_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_target_info_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // repeated uint32 mr_enclave = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_mr_enclave())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 10u, input, this->mutable_mr_enclave())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved1 = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_reserved1())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 18u, input, this->mutable_reserved1())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved2 = 3;
|
|
|
- case 3: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_reserved2())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 26u, input, this->mutable_reserved2())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_attributes_t attributes = 4;
|
|
|
- case 4: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_attributes()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 misc_select = 5;
|
|
|
- case 5: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
|
|
|
-
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, &misc_select_)));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_target_info_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_target_info_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_target_info_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_target_info_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 mr_enclave = 1;
|
|
|
- {
|
|
|
- int byte_size = _mr_enclave_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 1, mr_enclave_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved1 = 2;
|
|
|
- {
|
|
|
- int byte_size = _reserved1_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 2, reserved1_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved2 = 3;
|
|
|
- {
|
|
|
- int byte_size = _reserved2_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 3, reserved2_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_attributes_t attributes = 4;
|
|
|
- if (this->has_attributes()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 4, _Internal::attributes(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 misc_select = 5;
|
|
|
- if (this->misc_select() != 0) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->misc_select(), target);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_target_info_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_target_info_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_target_info_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 mr_enclave = 1;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->mr_enclave_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _mr_enclave_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved1 = 2;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->reserved1_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _reserved1_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 reserved2 = 3;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->reserved2_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _reserved2_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_attributes_t attributes = 4;
|
|
|
- if (this->has_attributes()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *attributes_);
|
|
|
- }
|
|
|
-
|
|
|
- // uint32 misc_select = 5;
|
|
|
- if (this->misc_select() != 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
|
- this->misc_select());
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_target_info_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::MergeFrom(const protobuf_sgx_target_info_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_target_info_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- mr_enclave_.MergeFrom(from.mr_enclave_);
|
|
|
- reserved1_.MergeFrom(from.reserved1_);
|
|
|
- reserved2_.MergeFrom(from.reserved2_);
|
|
|
- if (from.has_attributes()) {
|
|
|
- mutable_attributes()->::protobuf_sgx_attributes_t::MergeFrom(from.attributes());
|
|
|
- }
|
|
|
- if (from.misc_select() != 0) {
|
|
|
- set_misc_select(from.misc_select());
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::CopyFrom(const protobuf_sgx_target_info_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_target_info_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_target_info_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_target_info_t::InternalSwap(protobuf_sgx_target_info_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- mr_enclave_.InternalSwap(&other->mr_enclave_);
|
|
|
- reserved1_.InternalSwap(&other->reserved1_);
|
|
|
- reserved2_.InternalSwap(&other->reserved2_);
|
|
|
- swap(attributes_, other->attributes_);
|
|
|
- swap(misc_select_, other->misc_select_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_target_info_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_target_info_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::InitAsDefaultInstance() {
|
|
|
- ::_protobuf_sgx_dh_msg1_t_default_instance_._instance.get_mutable()->g_a_ = const_cast< ::protobuf_sgx_ec256_public_t*>(
|
|
|
- ::protobuf_sgx_ec256_public_t::internal_default_instance());
|
|
|
- ::_protobuf_sgx_dh_msg1_t_default_instance_._instance.get_mutable()->target_ = const_cast< ::protobuf_sgx_target_info_t*>(
|
|
|
- ::protobuf_sgx_target_info_t::internal_default_instance());
|
|
|
-}
|
|
|
-class protobuf_sgx_dh_msg1_t::_Internal {
|
|
|
- public:
|
|
|
- static const ::protobuf_sgx_ec256_public_t& g_a(const protobuf_sgx_dh_msg1_t* msg);
|
|
|
- static const ::protobuf_sgx_target_info_t& target(const protobuf_sgx_dh_msg1_t* msg);
|
|
|
-};
|
|
|
-
|
|
|
-const ::protobuf_sgx_ec256_public_t&
|
|
|
-protobuf_sgx_dh_msg1_t::_Internal::g_a(const protobuf_sgx_dh_msg1_t* msg) {
|
|
|
- return *msg->g_a_;
|
|
|
-}
|
|
|
-const ::protobuf_sgx_target_info_t&
|
|
|
-protobuf_sgx_dh_msg1_t::_Internal::target(const protobuf_sgx_dh_msg1_t* msg) {
|
|
|
- return *msg->target_;
|
|
|
-}
|
|
|
-protobuf_sgx_dh_msg1_t::protobuf_sgx_dh_msg1_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_dh_msg1_t)
|
|
|
-}
|
|
|
-protobuf_sgx_dh_msg1_t::protobuf_sgx_dh_msg1_t(const protobuf_sgx_dh_msg1_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_g_a()) {
|
|
|
- g_a_ = new ::protobuf_sgx_ec256_public_t(*from.g_a_);
|
|
|
- } else {
|
|
|
- g_a_ = nullptr;
|
|
|
- }
|
|
|
- if (from.has_target()) {
|
|
|
- target_ = new ::protobuf_sgx_target_info_t(*from.target_);
|
|
|
- } else {
|
|
|
- target_ = nullptr;
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_dh_msg1_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::SharedCtor() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_protobuf_sgx_dh_msg1_t_ProtobufLAMessages_2eproto.base);
|
|
|
- ::memset(&g_a_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&target_) -
|
|
|
- reinterpret_cast<char*>(&g_a_)) + sizeof(target_));
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_dh_msg1_t::~protobuf_sgx_dh_msg1_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_dh_msg1_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete g_a_;
|
|
|
- if (this != internal_default_instance()) delete target_;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_dh_msg1_t& protobuf_sgx_dh_msg1_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_dh_msg1_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_dh_msg1_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- if (GetArenaNoVirtual() == nullptr && g_a_ != nullptr) {
|
|
|
- delete g_a_;
|
|
|
- }
|
|
|
- g_a_ = nullptr;
|
|
|
- if (GetArenaNoVirtual() == nullptr && target_ != nullptr) {
|
|
|
- delete target_;
|
|
|
- }
|
|
|
- target_ = nullptr;
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_dh_msg1_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // .protobuf_sgx_ec256_public_t g_a = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_g_a(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // .protobuf_sgx_target_info_t target = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_target(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_dh_msg1_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_dh_msg1_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // .protobuf_sgx_ec256_public_t g_a = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_g_a()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_target_info_t target = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_target()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_dh_msg1_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_dh_msg1_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_dh_msg1_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_dh_msg1_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // .protobuf_sgx_ec256_public_t g_a = 1;
|
|
|
- if (this->has_g_a()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 1, _Internal::g_a(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_target_info_t target = 2;
|
|
|
- if (this->has_target()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 2, _Internal::target(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_dh_msg1_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_dh_msg1_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_dh_msg1_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // .protobuf_sgx_ec256_public_t g_a = 1;
|
|
|
- if (this->has_g_a()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *g_a_);
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_target_info_t target = 2;
|
|
|
- if (this->has_target()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *target_);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_dh_msg1_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::MergeFrom(const protobuf_sgx_dh_msg1_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_dh_msg1_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- if (from.has_g_a()) {
|
|
|
- mutable_g_a()->::protobuf_sgx_ec256_public_t::MergeFrom(from.g_a());
|
|
|
- }
|
|
|
- if (from.has_target()) {
|
|
|
- mutable_target()->::protobuf_sgx_target_info_t::MergeFrom(from.target());
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::CopyFrom(const protobuf_sgx_dh_msg1_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_dh_msg1_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_dh_msg1_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg1_t::InternalSwap(protobuf_sgx_dh_msg1_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(g_a_, other->g_a_);
|
|
|
- swap(target_, other->target_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_dh_msg1_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_dh_msg1_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::InitAsDefaultInstance() {
|
|
|
- ::_protobuf_sgx_dh_msg2_t_default_instance_._instance.get_mutable()->g_b_ = const_cast< ::protobuf_sgx_ec256_public_t*>(
|
|
|
- ::protobuf_sgx_ec256_public_t::internal_default_instance());
|
|
|
- ::_protobuf_sgx_dh_msg2_t_default_instance_._instance.get_mutable()->report_ = const_cast< ::protobuf_sgx_report_t*>(
|
|
|
- ::protobuf_sgx_report_t::internal_default_instance());
|
|
|
-}
|
|
|
-class protobuf_sgx_dh_msg2_t::_Internal {
|
|
|
- public:
|
|
|
- static const ::protobuf_sgx_ec256_public_t& g_b(const protobuf_sgx_dh_msg2_t* msg);
|
|
|
- static const ::protobuf_sgx_report_t& report(const protobuf_sgx_dh_msg2_t* msg);
|
|
|
-};
|
|
|
-
|
|
|
-const ::protobuf_sgx_ec256_public_t&
|
|
|
-protobuf_sgx_dh_msg2_t::_Internal::g_b(const protobuf_sgx_dh_msg2_t* msg) {
|
|
|
- return *msg->g_b_;
|
|
|
-}
|
|
|
-const ::protobuf_sgx_report_t&
|
|
|
-protobuf_sgx_dh_msg2_t::_Internal::report(const protobuf_sgx_dh_msg2_t* msg) {
|
|
|
- return *msg->report_;
|
|
|
-}
|
|
|
-protobuf_sgx_dh_msg2_t::protobuf_sgx_dh_msg2_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_dh_msg2_t)
|
|
|
-}
|
|
|
-protobuf_sgx_dh_msg2_t::protobuf_sgx_dh_msg2_t(const protobuf_sgx_dh_msg2_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr),
|
|
|
- cmac_(from.cmac_) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_g_b()) {
|
|
|
- g_b_ = new ::protobuf_sgx_ec256_public_t(*from.g_b_);
|
|
|
- } else {
|
|
|
- g_b_ = nullptr;
|
|
|
- }
|
|
|
- if (from.has_report()) {
|
|
|
- report_ = new ::protobuf_sgx_report_t(*from.report_);
|
|
|
- } else {
|
|
|
- report_ = nullptr;
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_dh_msg2_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::SharedCtor() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_protobuf_sgx_dh_msg2_t_ProtobufLAMessages_2eproto.base);
|
|
|
- ::memset(&g_b_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&report_) -
|
|
|
- reinterpret_cast<char*>(&g_b_)) + sizeof(report_));
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_dh_msg2_t::~protobuf_sgx_dh_msg2_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_dh_msg2_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete g_b_;
|
|
|
- if (this != internal_default_instance()) delete report_;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_dh_msg2_t& protobuf_sgx_dh_msg2_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_dh_msg2_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_dh_msg2_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- cmac_.Clear();
|
|
|
- if (GetArenaNoVirtual() == nullptr && g_b_ != nullptr) {
|
|
|
- delete g_b_;
|
|
|
- }
|
|
|
- g_b_ = nullptr;
|
|
|
- if (GetArenaNoVirtual() == nullptr && report_ != nullptr) {
|
|
|
- delete report_;
|
|
|
- }
|
|
|
- report_ = nullptr;
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_dh_msg2_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // .protobuf_sgx_ec256_public_t g_b = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_g_b(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // .protobuf_sgx_report_t report = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_report(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 cmac = 3;
|
|
|
- case 3:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_cmac(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) {
|
|
|
- add_cmac(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_dh_msg2_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_dh_msg2_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // .protobuf_sgx_ec256_public_t g_b = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_g_b()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_report_t report = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_report()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 cmac = 3;
|
|
|
- case 3: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_cmac())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 26u, input, this->mutable_cmac())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_dh_msg2_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_dh_msg2_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_dh_msg2_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_dh_msg2_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // .protobuf_sgx_ec256_public_t g_b = 1;
|
|
|
- if (this->has_g_b()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 1, _Internal::g_b(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_report_t report = 2;
|
|
|
- if (this->has_report()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 2, _Internal::report(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 cmac = 3;
|
|
|
- {
|
|
|
- int byte_size = _cmac_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 3, cmac_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_dh_msg2_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_dh_msg2_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_dh_msg2_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 cmac = 3;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->cmac_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _cmac_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_ec256_public_t g_b = 1;
|
|
|
- if (this->has_g_b()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *g_b_);
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_report_t report = 2;
|
|
|
- if (this->has_report()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *report_);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_dh_msg2_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::MergeFrom(const protobuf_sgx_dh_msg2_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_dh_msg2_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- cmac_.MergeFrom(from.cmac_);
|
|
|
- if (from.has_g_b()) {
|
|
|
- mutable_g_b()->::protobuf_sgx_ec256_public_t::MergeFrom(from.g_b());
|
|
|
- }
|
|
|
- if (from.has_report()) {
|
|
|
- mutable_report()->::protobuf_sgx_report_t::MergeFrom(from.report());
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::CopyFrom(const protobuf_sgx_dh_msg2_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_dh_msg2_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_dh_msg2_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg2_t::InternalSwap(protobuf_sgx_dh_msg2_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- cmac_.InternalSwap(&other->cmac_);
|
|
|
- swap(g_b_, other->g_b_);
|
|
|
- swap(report_, other->report_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_dh_msg2_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_dh_msg2_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::InitAsDefaultInstance() {
|
|
|
- ::_protobuf_sgx_dh_msg3_body_t_default_instance_._instance.get_mutable()->report_ = const_cast< ::protobuf_sgx_report_t*>(
|
|
|
- ::protobuf_sgx_report_t::internal_default_instance());
|
|
|
-}
|
|
|
-class protobuf_sgx_dh_msg3_body_t::_Internal {
|
|
|
- public:
|
|
|
- static const ::protobuf_sgx_report_t& report(const protobuf_sgx_dh_msg3_body_t* msg);
|
|
|
-};
|
|
|
-
|
|
|
-const ::protobuf_sgx_report_t&
|
|
|
-protobuf_sgx_dh_msg3_body_t::_Internal::report(const protobuf_sgx_dh_msg3_body_t* msg) {
|
|
|
- return *msg->report_;
|
|
|
-}
|
|
|
-protobuf_sgx_dh_msg3_body_t::protobuf_sgx_dh_msg3_body_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_dh_msg3_body_t)
|
|
|
-}
|
|
|
-protobuf_sgx_dh_msg3_body_t::protobuf_sgx_dh_msg3_body_t(const protobuf_sgx_dh_msg3_body_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr),
|
|
|
- additional_prop_(from.additional_prop_) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_report()) {
|
|
|
- report_ = new ::protobuf_sgx_report_t(*from.report_);
|
|
|
- } else {
|
|
|
- report_ = nullptr;
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_dh_msg3_body_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::SharedCtor() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_protobuf_sgx_dh_msg3_body_t_ProtobufLAMessages_2eproto.base);
|
|
|
- report_ = nullptr;
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_dh_msg3_body_t::~protobuf_sgx_dh_msg3_body_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_dh_msg3_body_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete report_;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_dh_msg3_body_t& protobuf_sgx_dh_msg3_body_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_dh_msg3_body_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_dh_msg3_body_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- additional_prop_.Clear();
|
|
|
- if (GetArenaNoVirtual() == nullptr && report_ != nullptr) {
|
|
|
- delete report_;
|
|
|
- }
|
|
|
- report_ = nullptr;
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_dh_msg3_body_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // .protobuf_sgx_report_t report = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_report(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 additional_prop = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_additional_prop(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
|
|
|
- add_additional_prop(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_dh_msg3_body_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_dh_msg3_body_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // .protobuf_sgx_report_t report = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_report()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 additional_prop = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_additional_prop())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 18u, input, this->mutable_additional_prop())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_dh_msg3_body_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_dh_msg3_body_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_dh_msg3_body_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_dh_msg3_body_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // .protobuf_sgx_report_t report = 1;
|
|
|
- if (this->has_report()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 1, _Internal::report(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 additional_prop = 2;
|
|
|
- {
|
|
|
- int byte_size = _additional_prop_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 2, additional_prop_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_dh_msg3_body_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_dh_msg3_body_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_dh_msg3_body_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 additional_prop = 2;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->additional_prop_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _additional_prop_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_report_t report = 1;
|
|
|
- if (this->has_report()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *report_);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_dh_msg3_body_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::MergeFrom(const protobuf_sgx_dh_msg3_body_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_dh_msg3_body_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- additional_prop_.MergeFrom(from.additional_prop_);
|
|
|
- if (from.has_report()) {
|
|
|
- mutable_report()->::protobuf_sgx_report_t::MergeFrom(from.report());
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::CopyFrom(const protobuf_sgx_dh_msg3_body_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_dh_msg3_body_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_dh_msg3_body_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_body_t::InternalSwap(protobuf_sgx_dh_msg3_body_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- additional_prop_.InternalSwap(&other->additional_prop_);
|
|
|
- swap(report_, other->report_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_dh_msg3_body_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_dh_msg3_body_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::InitAsDefaultInstance() {
|
|
|
- ::_protobuf_sgx_dh_msg3_t_default_instance_._instance.get_mutable()->msg3_body_ = const_cast< ::protobuf_sgx_dh_msg3_body_t*>(
|
|
|
- ::protobuf_sgx_dh_msg3_body_t::internal_default_instance());
|
|
|
-}
|
|
|
-class protobuf_sgx_dh_msg3_t::_Internal {
|
|
|
- public:
|
|
|
- static const ::protobuf_sgx_dh_msg3_body_t& msg3_body(const protobuf_sgx_dh_msg3_t* msg);
|
|
|
-};
|
|
|
-
|
|
|
-const ::protobuf_sgx_dh_msg3_body_t&
|
|
|
-protobuf_sgx_dh_msg3_t::_Internal::msg3_body(const protobuf_sgx_dh_msg3_t* msg) {
|
|
|
- return *msg->msg3_body_;
|
|
|
-}
|
|
|
-protobuf_sgx_dh_msg3_t::protobuf_sgx_dh_msg3_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_sgx_dh_msg3_t)
|
|
|
-}
|
|
|
-protobuf_sgx_dh_msg3_t::protobuf_sgx_dh_msg3_t(const protobuf_sgx_dh_msg3_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr),
|
|
|
- cmac_(from.cmac_) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- if (from.has_msg3_body()) {
|
|
|
- msg3_body_ = new ::protobuf_sgx_dh_msg3_body_t(*from.msg3_body_);
|
|
|
- } else {
|
|
|
- msg3_body_ = nullptr;
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_sgx_dh_msg3_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::SharedCtor() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_protobuf_sgx_dh_msg3_t_ProtobufLAMessages_2eproto.base);
|
|
|
- msg3_body_ = nullptr;
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_sgx_dh_msg3_t::~protobuf_sgx_dh_msg3_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_sgx_dh_msg3_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::SharedDtor() {
|
|
|
- if (this != internal_default_instance()) delete msg3_body_;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_sgx_dh_msg3_t& protobuf_sgx_dh_msg3_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_sgx_dh_msg3_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_sgx_dh_msg3_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- cmac_.Clear();
|
|
|
- if (GetArenaNoVirtual() == nullptr && msg3_body_ != nullptr) {
|
|
|
- delete msg3_body_;
|
|
|
- }
|
|
|
- msg3_body_ = nullptr;
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_sgx_dh_msg3_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // .protobuf_sgx_dh_msg3_body_t msg3_body = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ctx->ParseMessage(mutable_msg3_body(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // repeated uint32 cmac = 2;
|
|
|
- case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(mutable_cmac(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) {
|
|
|
- add_cmac(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_sgx_dh_msg3_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_sgx_dh_msg3_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // .protobuf_sgx_dh_msg3_body_t msg3_body = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
|
- input, mutable_msg3_body()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 cmac = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- input, this->mutable_cmac())));
|
|
|
- } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
- 1, 18u, input, this->mutable_cmac())));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_sgx_dh_msg3_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_sgx_dh_msg3_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_sgx_dh_msg3_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_sgx_dh_msg3_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // .protobuf_sgx_dh_msg3_body_t msg3_body = 1;
|
|
|
- if (this->has_msg3_body()) {
|
|
|
- stream->EnsureSpace(&target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessageToArray(
|
|
|
- 1, _Internal::msg3_body(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // repeated uint32 cmac = 2;
|
|
|
- {
|
|
|
- int byte_size = _cmac_cached_byte_size_.load(std::memory_order_relaxed);
|
|
|
- if (byte_size > 0) {
|
|
|
- target = stream->WriteUInt32Packed(
|
|
|
- 2, cmac_, byte_size, target);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_sgx_dh_msg3_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_sgx_dh_msg3_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_sgx_dh_msg3_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // repeated uint32 cmac = 2;
|
|
|
- {
|
|
|
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- UInt32Size(this->cmac_);
|
|
|
- if (data_size > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
|
- _cmac_cached_byte_size_.store(cached_size,
|
|
|
- std::memory_order_relaxed);
|
|
|
- total_size += data_size;
|
|
|
- }
|
|
|
-
|
|
|
- // .protobuf_sgx_dh_msg3_body_t msg3_body = 1;
|
|
|
- if (this->has_msg3_body()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *msg3_body_);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_sgx_dh_msg3_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::MergeFrom(const protobuf_sgx_dh_msg3_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_sgx_dh_msg3_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- cmac_.MergeFrom(from.cmac_);
|
|
|
- if (from.has_msg3_body()) {
|
|
|
- mutable_msg3_body()->::protobuf_sgx_dh_msg3_body_t::MergeFrom(from.msg3_body());
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::CopyFrom(const protobuf_sgx_dh_msg3_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_sgx_dh_msg3_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_sgx_dh_msg3_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_sgx_dh_msg3_t::InternalSwap(protobuf_sgx_dh_msg3_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- cmac_.InternalSwap(&other->cmac_);
|
|
|
- swap(msg3_body_, other->msg3_body_);
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_sgx_dh_msg3_t::GetTypeName() const {
|
|
|
- return "protobuf_sgx_dh_msg3_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::InitAsDefaultInstance() {
|
|
|
-}
|
|
|
-class protobuf_post_LA_encrypted_msg_t::_Internal {
|
|
|
- public:
|
|
|
-};
|
|
|
-
|
|
|
-protobuf_post_LA_encrypted_msg_t::protobuf_post_LA_encrypted_msg_t()
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:protobuf_post_LA_encrypted_msg_t)
|
|
|
-}
|
|
|
-protobuf_post_LA_encrypted_msg_t::protobuf_post_LA_encrypted_msg_t(const protobuf_post_LA_encrypted_msg_t& from)
|
|
|
- : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
|
|
- _internal_metadata_(nullptr) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- msg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
- if (!from.msg().empty()) {
|
|
|
- msg_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.msg_);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(copy_constructor:protobuf_post_LA_encrypted_msg_t)
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::SharedCtor() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_protobuf_post_LA_encrypted_msg_t_ProtobufLAMessages_2eproto.base);
|
|
|
- msg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
-}
|
|
|
-
|
|
|
-protobuf_post_LA_encrypted_msg_t::~protobuf_post_LA_encrypted_msg_t() {
|
|
|
- // @@protoc_insertion_point(destructor:protobuf_post_LA_encrypted_msg_t)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::SharedDtor() {
|
|
|
- msg_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::SetCachedSize(int size) const {
|
|
|
- _cached_size_.Set(size);
|
|
|
-}
|
|
|
-const protobuf_post_LA_encrypted_msg_t& protobuf_post_LA_encrypted_msg_t::default_instance() {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_protobuf_post_LA_encrypted_msg_t_ProtobufLAMessages_2eproto.base);
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:protobuf_post_LA_encrypted_msg_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- msg_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-const char* protobuf_post_LA_encrypted_msg_t::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
|
-#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
- while (!ctx->Done(&ptr)) {
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
- CHK_(ptr);
|
|
|
- switch (tag >> 3) {
|
|
|
- // bytes msg = 1;
|
|
|
- case 1:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_msg(), ptr, ctx);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if ((tag & 7) == 4 || tag == 0) {
|
|
|
- ctx->SetLastTag(tag);
|
|
|
- goto success;
|
|
|
- }
|
|
|
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
|
- CHK_(ptr != nullptr);
|
|
|
- continue;
|
|
|
- }
|
|
|
- } // switch
|
|
|
- } // while
|
|
|
-success:
|
|
|
- return ptr;
|
|
|
-failure:
|
|
|
- ptr = nullptr;
|
|
|
- goto success;
|
|
|
-#undef CHK_
|
|
|
-}
|
|
|
-#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-bool protobuf_post_LA_encrypted_msg_t::MergePartialFromCodedStream(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
|
-#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::LiteUnknownFieldSetter unknown_fields_setter(
|
|
|
- &_internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::StringOutputStream unknown_fields_output(
|
|
|
- unknown_fields_setter.buffer());
|
|
|
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream unknown_fields_stream(
|
|
|
- &unknown_fields_output, false);
|
|
|
- // @@protoc_insertion_point(parse_start:protobuf_post_LA_encrypted_msg_t)
|
|
|
- for (;;) {
|
|
|
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
- tag = p.first;
|
|
|
- if (!p.second) goto handle_unusual;
|
|
|
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // bytes msg = 1;
|
|
|
- case 1: {
|
|
|
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
|
|
|
- input, this->mutable_msg()));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- default: {
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
- }
|
|
|
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SkipField(
|
|
|
- input, tag, &unknown_fields_stream));
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-success:
|
|
|
- // @@protoc_insertion_point(parse_success:protobuf_post_LA_encrypted_msg_t)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:protobuf_post_LA_encrypted_msg_t)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
-
|
|
|
-::PROTOBUF_NAMESPACE_ID::uint8* protobuf_post_LA_encrypted_msg_t::InternalSerializeWithCachedSizesToArray(
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_post_LA_encrypted_msg_t)
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // bytes msg = 1;
|
|
|
- if (this->msg().size() > 0) {
|
|
|
- target = stream->WriteBytesMaybeAliased(
|
|
|
- 1, this->msg(), target);
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
|
|
|
- static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_post_LA_encrypted_msg_t)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t protobuf_post_LA_encrypted_msg_t::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:protobuf_post_LA_encrypted_msg_t)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- // Prevent compiler warnings about cached_has_bits being unused
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- // bytes msg = 1;
|
|
|
- if (this->msg().size() > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
|
- this->msg());
|
|
|
- }
|
|
|
-
|
|
|
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
- total_size += _internal_metadata_.unknown_fields().size();
|
|
|
- }
|
|
|
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
|
- SetCachedSize(cached_size);
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::CheckTypeAndMergeFrom(
|
|
|
- const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
|
|
- MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const protobuf_post_LA_encrypted_msg_t*>(
|
|
|
- &from));
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::MergeFrom(const protobuf_post_LA_encrypted_msg_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:protobuf_post_LA_encrypted_msg_t)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- if (from.msg().size() > 0) {
|
|
|
-
|
|
|
- msg_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.msg_);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::CopyFrom(const protobuf_post_LA_encrypted_msg_t& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:protobuf_post_LA_encrypted_msg_t)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool protobuf_post_LA_encrypted_msg_t::IsInitialized() const {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void protobuf_post_LA_encrypted_msg_t::InternalSwap(protobuf_post_LA_encrypted_msg_t* other) {
|
|
|
- using std::swap;
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- msg_.Swap(&other->msg_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
|
- GetArenaNoVirtual());
|
|
|
-}
|
|
|
-
|
|
|
-std::string protobuf_post_LA_encrypted_msg_t::GetTypeName() const {
|
|
|
- return "protobuf_post_LA_encrypted_msg_t";
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-// @@protoc_insertion_point(namespace_scope)
|
|
|
-PROTOBUF_NAMESPACE_OPEN
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_attributes_t* Arena::CreateMaybeMessage< ::protobuf_sgx_attributes_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_attributes_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_ec256_public_t* Arena::CreateMaybeMessage< ::protobuf_sgx_ec256_public_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_ec256_public_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_report_body_t* Arena::CreateMaybeMessage< ::protobuf_sgx_report_body_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_report_body_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_report_t* Arena::CreateMaybeMessage< ::protobuf_sgx_report_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_report_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_target_info_t* Arena::CreateMaybeMessage< ::protobuf_sgx_target_info_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_target_info_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_dh_msg1_t* Arena::CreateMaybeMessage< ::protobuf_sgx_dh_msg1_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_dh_msg1_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_dh_msg2_t* Arena::CreateMaybeMessage< ::protobuf_sgx_dh_msg2_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_dh_msg2_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_dh_msg3_body_t* Arena::CreateMaybeMessage< ::protobuf_sgx_dh_msg3_body_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_dh_msg3_body_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_sgx_dh_msg3_t* Arena::CreateMaybeMessage< ::protobuf_sgx_dh_msg3_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_sgx_dh_msg3_t >(arena);
|
|
|
-}
|
|
|
-template<> PROTOBUF_NOINLINE ::protobuf_post_LA_encrypted_msg_t* Arena::CreateMaybeMessage< ::protobuf_post_LA_encrypted_msg_t >(Arena* arena) {
|
|
|
- return Arena::CreateInternal< ::protobuf_post_LA_encrypted_msg_t >(arena);
|
|
|
-}
|
|
|
-PROTOBUF_NAMESPACE_CLOSE
|
|
|
-
|
|
|
-// @@protoc_insertion_point(global_scope)
|
|
|
-#include <google/protobuf/port_undef.inc>
|