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

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

Issue 652216: Vboot reference: A basic user-land verified boot firmware signing and verification utility. (Closed)
Patch Set: Style fixes. Segfault fix. 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
« no previous file with comments | « no previous file | src/platform/vboot_reference/include/firmware_image.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46735ece1f0c9e129affd8549eaadf5d8b246b8e..f1f38cc9065dfdd0721acba8dcfe35810a81289d 100644
--- a/src/platform/vboot_reference/include/file_keys.h
+++ b/src/platform/vboot_reference/include/file_keys.h
@@ -16,14 +16,14 @@
* Returns a pointer to the buffer. Caller owns the returned pointer and
* must free it.
*/
-uint8_t* BufferFromFile(char* input_file, int* len);
+uint8_t* BufferFromFile(const char* input_file, uint32_t* len);
/* Read a pre-processed RSA Public Key from file [input_file].
*
* Returns a pointer to the read key. Caller owns the returned pointer and
* must free it.
*/
-RSAPublicKey* RSAPublicKeyFromFile(char* input_file);
+RSAPublicKey* RSAPublicKeyFromFile(const char* input_file);
/* Helper function to invoke external program to calculate signature on
* [input_file] using private key [key_file] and signature algorithm
@@ -31,6 +31,7 @@ RSAPublicKey* RSAPublicKeyFromFile(char* input_file);
*
* Returns the signature. Caller owns the buffer and must Free() it.
*/
-uint8_t* SignatureFile(char* input_fie, char* key_file, int algorithm);
+uint8_t* SignatureFile(const char* input_fie, const char* key_file,
+ int algorithm);
#endif /* VBOOT_REFERENCE_FILE_KEYS_H_ */
« no previous file with comments | « no previous file | src/platform/vboot_reference/include/firmware_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698