1 #ifndef UPTANE_PARTIALVRIFICATIONSECONDARY_H_
2 #define UPTANE_PARTIALVRIFICATIONSECONDARY_H_
7 #include <boost/filesystem.hpp>
10 #include "uptane/secondaryinterface.h"
13 #include "managedsecondary.h"
22 constexpr
static const char*
const Type =
"partial-verification";
34 if (!sconfig.ecu_serial.empty()) {
40 PublicKey getPublicKey()
const override {
return public_key_; }
43 int getRootVersion(
bool director)
const override;
44 bool putRoot(
const std::string& root,
bool director)
override;
46 bool sendFirmware(
const std::string&
data)
override;
51 void storeKeys(
const std::string& public_key,
const std::string& private_key);
52 bool loadKeys(std::string* public_key, std::string* private_key);
57 std::string private_key_;
59 std::string detected_attack_;
64 #endif // UPTANE_PARTIALVRIFICATIONSECONDARY_H_