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

Unified Diff: host/include/host_signature.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 | « host/include/host_keyblock.h ('k') | host/lib/host_keyblock.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/include/host_signature.h
diff --git a/host/include/host_signature.h b/host/include/host_signature.h
index 4bbee7cc7d95e01095c84946ad63287f045eeb57..f08547c80e6391872b80cc01b66da35c6502fcf3 100644
--- a/host/include/host_signature.h
+++ b/host/include/host_signature.h
@@ -32,15 +32,25 @@ int SignatureCopy(VbSignature* dest, const VbSignature* src);
/* Calculates a SHA-512 checksum.
* Caller owns the returned pointer, and must free it with Free().
*
- * Returns NULL if error. */
+ * Returns NULL on error. */
VbSignature* CalculateChecksum(const uint8_t* data, uint64_t size);
/* Calculates a signature for the data using the specified key.
* Caller owns the returned pointer, and must free it with Free().
*
- * Returns NULL if error. */
+ * Returns NULL on error. */
VbSignature* CalculateSignature(const uint8_t* data, uint64_t size,
const VbPrivateKey* key);
+/* Calculates a signature for the data using the specified key and
+ * an external program.
+ * Caller owns the returned pointer, and must free it with Free().
+ *
+ * Returns NULL on error. */
+VbSignature* CalculateSignature_external(const uint8_t* data, uint64_t size,
+ const char* key_file,
+ uint64_t key_algorithm,
+ const char* external_signer);
+
#endif /* VBOOT_REFERENCE_HOST_SIGNATURE_H_ */
« no previous file with comments | « host/include/host_keyblock.h ('k') | host/lib/host_keyblock.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698