Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: tpm_init.h

Issue 3116014: Add method to get random bytes from the TPM. (Closed) Base URL: http://src.chromium.org/git/tpm_init.git
Patch Set: Change int to size_t. Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tpm.cc ('k') | tpm_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tpm_init.h
diff --git a/tpm_init.h b/tpm_init.h
index 0dc1086d0a9d0fb4aeb4c8b9e8402aab21f35189..e2e6bd16797cc5d1db679fefdc967a92546d222c 100644
--- a/tpm_init.h
+++ b/tpm_init.h
@@ -23,6 +23,13 @@ class TpmInit {
virtual ~TpmInit();
+ // Gets random data from the TPM
+ //
+ // Parameters
+ // length - The number of bytes to get
+ // data (OUT) - Receives the random bytes
+ virtual bool GetRandomData(int length, chromeos::Blob* data);
+
// Starts asynchronous initialization of the TPM
virtual bool StartInitializeTpm();
« no previous file with comments | « tpm.cc ('k') | tpm_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698