security: Generate random block in Tpm.
Change-Id: Ia65d32802ed0ebc76605ae7975ea02f4c2db737d
diff --git a/src/security/sec-tpm.hpp b/src/security/sec-tpm.hpp
index ec3334d..9c15ad7 100644
--- a/src/security/sec-tpm.hpp
+++ b/src/security/sec-tpm.hpp
@@ -102,6 +102,16 @@
*/
virtual bool
doesKeyExistInTpm(const Name& keyName, KeyClass keyClass) = 0;
+
+ /**
+ * @brief Generate a random number.
+ *
+ * @param res The pointer to the generated number.
+ * @param size The random number size.
+ * @return true for success, otherwise false.
+ */
+ virtual bool
+ generateRandomBlock(uint8_t* res, size_t size) = 0;
};
}