2 #include "hpda/extractor/extractor_base.h"
3 #include "ypc/common/limits.h"
4 #include "ypc/core_t/ecommon/package.h"
5 #include "ypc/corecommon/data_source.h"
6 #include "ypc/stbox/ebyte.h"
7 #include "ypc/stbox/stx_common.h"
8 #include "ypc/stbox/tsgx/channel/dh_session_initiator.h"
9 #include <ff/util/ntobject.h>
12 using bytes = ::stbox::bytes;
13 typedef ::ff::util::ntobject<nt<bytes>::data> data_source_output_t;
18 : m_expect_data_hash(data_hash) {}
22 inline const bytes &expect_data_hash()
const {
return m_expect_data_hash; }
23 virtual const bytes &data_hash()
const = 0;
25 inline void reset_reach_end(){m_data_reach_end =
false;}
28 bytes m_expect_data_hash;
29 bool m_data_reach_end;