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

Unified Diff: tpm.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 | « no previous file | tpm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tpm.h
diff --git a/tpm.h b/tpm.h
index 559c053d879551bfab1996ce11271d26fb4b0d78..97c4d7dee4483a72184ad440579152e0431b941f 100644
--- a/tpm.h
+++ b/tpm.h
@@ -68,6 +68,13 @@ class Tpm {
// call to Tspi_TPM_TakeOwnership.
bool InitializeTpm();
+ // Gets random bytes from the TPM
+ //
+ // Parameters
+ // length - The number of bytes to get
+ // data (OUT) - The random data from the TPM
+ bool GetRandomData(size_t length, chromeos::Blob* data);
+
private:
// Attempts to connect to tcsd
//
« no previous file with comments | « no previous file | tpm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698