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

Unified Diff: src/platform/vboot_reference/include/file_keys.h

Issue 650105: Vboot Reference: Add the "real" reference firmware verification function (VerifyFirmware). (Closed)
Patch Set: Review fixes. Created 10 years, 10 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
Index: src/platform/vboot_reference/include/file_keys.h
diff --git a/src/platform/vboot_reference/include/file_keys.h b/src/platform/vboot_reference/include/file_keys.h
index 9236172bbbeae95b5bd0b9c5b174abfe6486afca..46735ece1f0c9e129affd8549eaadf5d8b246b8e 100644
--- a/src/platform/vboot_reference/include/file_keys.h
+++ b/src/platform/vboot_reference/include/file_keys.h
@@ -25,4 +25,12 @@ uint8_t* BufferFromFile(char* input_file, int* len);
*/
RSAPublicKey* RSAPublicKeyFromFile(char* input_file);
+/* Helper function to invoke external program to calculate signature on
+ * [input_file] using private key [key_file] and signature algorithm
+ * [algorithm].
+ *
+ * Returns the signature. Caller owns the buffer and must Free() it.
+ */
+uint8_t* SignatureFile(char* input_fie, char* key_file, int algorithm);
+
#endif /* VBOOT_REFERENCE_FILE_KEYS_H_ */
« no previous file with comments | « src/platform/vboot_reference/crypto/sha_utility.c ('k') | src/platform/vboot_reference/include/firmware_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698