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

Unified Diff: host/include/host_misc.h

Issue 2762009: Add vbutil_key (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Util to pack/unpack .vbpubk files Created 10 years, 6 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 | « host/include/host_key.h ('k') | host/lib/host_common.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/include/host_misc.h
diff --git a/host/include/host_misc.h b/host/include/host_misc.h
new file mode 100644
index 0000000000000000000000000000000000000000..7e66c73cf81b78f5eef5bc113a638ccca6560fb3
--- /dev/null
+++ b/host/include/host_misc.h
@@ -0,0 +1,25 @@
+/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
+ * Host-side misc functions for verified boot.
+ */
+
+#ifndef VBOOT_REFERENCE_HOST_MISC_H_
+#define VBOOT_REFERENCE_HOST_MISC_H_
+
+#include <stdint.h>
+
+#include "host_misc.h"
+#include "utility.h"
+#include "vboot_struct.h"
+
+
+/* Read data from [filename]. Store the size of returned data in [size].
+ *
+ * Returns the data buffer, which the caller must Free(), or NULL if
+ * error. */
+uint8_t* ReadFile(const char* filename, uint64_t* size);
+
+
+#endif /* VBOOT_REFERENCE_HOST_MISC_H_ */
« no previous file with comments | « host/include/host_key.h ('k') | host/lib/host_common.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698