Add method to forget private partition keys.
Report both the disk and the partition GUID for private volumes to
userspace, and offer to forget the encryption key for a given
partition GUID.
Bug: 21782268
Change-Id: Ie77a3a58e47bf3563cdb3e4b0edfab1de4d0e6b4
diff --git a/Utils.h b/Utils.h
index ab151aa..8d6bf38 100644
--- a/Utils.h
+++ b/Utils.h
@@ -77,6 +77,8 @@
status_t HexToStr(const std::string& hex, std::string& str);
/* Converts raw bytes to hex string */
status_t StrToHex(const std::string& str, std::string& hex);
+/* Normalize given hex string into consistent format */
+status_t NormalizeHex(const std::string& in, std::string& out);
uint64_t GetFreeBytes(const std::string& path);
uint64_t GetTreeBytes(const std::string& path);
@@ -86,6 +88,8 @@
/* Wipes contents of block device at given path */
status_t WipeBlockDevice(const std::string& path);
+std::string BuildKeyPath(const std::string& partGuid);
+
} // namespace vold
} // namespace android