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

Unified Diff: host/include/host_keyblock.h

Issue 4194003: Add support for using external signing application and .pem private key files to vbutil_keyblock. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: fix read() bug Created 10 years, 2 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 | host/include/host_signature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/include/host_keyblock.h
diff --git a/host/include/host_keyblock.h b/host/include/host_keyblock.h
index 1da251e6e35d5d88bc68f3702b60f7b8c2a98981..ea88f19b881699f90e740b8335f6d71285b8d0c6 100644
--- a/host/include/host_keyblock.h
+++ b/host/include/host_keyblock.h
@@ -13,6 +13,18 @@
/* Create a key block header containing [data_key] and [flags], signed
+ * by private key the file [signing_key_pem_file] and algorithm [algorithm]
+ * using the external signer program [external_signer] for all private key
+ * operations.
+ * Caller owns the returned pointer, and must free
+ * it with Free(). */
+VbKeyBlockHeader* KeyBlockCreate_external(const VbPublicKey* data_key,
+ const char* signing_key_pem_file,
+ uint64_t algorithm,
+ uint64_t flags,
+ const char* external_signer);
+
+/* Create a key block header containing [data_key] and [flags], signed
* by [signing_key]. Caller owns the returned pointer, and must free
* it with Free(). */
VbKeyBlockHeader* KeyBlockCreate(const VbPublicKey* data_key,
« no previous file with comments | « no previous file | host/include/host_signature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698