ipmi: start implementing flashHashFinish
Change-Id: I354b346bcd2d0dd141fd21a84e57cd7c06eadc1a
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/flash-ipmi.hpp b/flash-ipmi.hpp
index ddcfa14..baf4c7f 100644
--- a/flash-ipmi.hpp
+++ b/flash-ipmi.hpp
@@ -124,6 +124,11 @@
*/
virtual bool hashData(uint32_t offset,
const std::vector<uint8_t>& bytes) = 0;
+
+ /**
+ * Called to indicate the host is done sending the hash bytes.
+ */
+ virtual bool hashFinish() = 0;
};
class FlashUpdate : public UpdateInterface
@@ -142,6 +147,7 @@
bool startHash(uint32_t length) override;
bool hashData(uint32_t offset, const std::vector<uint8_t>& bytes) override;
+ bool hashFinish() override;
private:
/**