#pragma once #include #include #include #include #include #include #include #include #include "KeyConfiguration.h" #include "common.h" class EsTikProcess { public: EsTikProcess(); void process(); void setInputFile(const fnd::SharedPtr& file); void setKeyCfg(const KeyConfiguration& keycfg); void setCertificateChain(const fnd::List>& certs); void setCliOutputMode(CliOutputMode mode); void setVerifyMode(bool verify); private: const std::string kModuleName = "EsTikProcess"; fnd::SharedPtr mFile; KeyConfiguration mKeyCfg; CliOutputMode mCliOutputMode; bool mVerify; fnd::List> mCerts; nn::pki::SignedData mTik; void importTicket(); void verifyTicket(); void displayTicket(); const char* getSignTypeStr(uint32_t type) const; const char* getTitleKeyPersonalisationStr(byte_t flag) const; const char* getLicenseTypeStr(byte_t flag) const; const char* getPropertyFlagStr(byte_t flag) const; };