commit | 4b7527574a4e2f262ed56d2cc4a2a6d04fb7142c | [log] [tgz] |
---|---|---|
author | Yingdi Yu <yuyingdi@gmail.com> | Tue Feb 18 12:24:03 2014 -0800 |
committer | Yingdi Yu <yuyingdi@gmail.com> | Wed Feb 19 13:31:45 2014 -0800 |
tree | c35ab7cfeec48f6671b107f7925bd7a06b66c781 | |
parent | 21abc10d154fcbbfe78024cb27923d53400edcac [diff] [blame] |
security: Generate random block in Tpm. Change-Id: Ia65d32802ed0ebc76605ae7975ea02f4c2db737d
diff --git a/src/security/sec-tpm-memory.hpp b/src/security/sec-tpm-memory.hpp index 38bc5ff..69f5052 100644 --- a/src/security/sec-tpm-memory.hpp +++ b/src/security/sec-tpm-memory.hpp
@@ -107,6 +107,9 @@ virtual void generateSymmetricKeyInTpm(const Name& keyName, KeyType keyType, int keySize); + virtual bool + generateRandomBlock(uint8_t* res, size_t size); + /** * Check if a particular key exists. * @param keyName The name of the key.