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

Unified Diff: src/platform/vboot_reference/tests/verify_data.h

Issue 558025: Refactor SHA*_file functions into a separate file. Generate them using a C macro. (Closed)
Patch Set: Switched back from a macro to duplicate code. Created 10 years, 11 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/tests/verify_data.h
diff --git a/src/platform/vboot_reference/tests/verify_data.h b/src/platform/vboot_reference/tests/verify_data.h
index e377415aef430e5f633230eed01bb50408492577..a9732debe56adb4394730e3cb1d8d59f65818be1 100644
--- a/src/platform/vboot_reference/tests/verify_data.h
+++ b/src/platform/vboot_reference/tests/verify_data.h
@@ -12,27 +12,6 @@
*/
RSAPublicKey* read_RSAkey(char *input_file, int len);
-/* Returns the SHA-1 digest of [input_file].
- * Caller owns the returned digest and must free it.
- */
-uint8_t* SHA1_file(char *input_file);
-
-/* Returns the SHA-256 digest of [input_file].
- * Caller owns the returned digest and must free it.
- */
-uint8_t* SHA256_file(char *input_file);
-
-/* Returns the SHA-512 digest of [input_file].
- * Caller owns the returned digest and must free it.
- */
-uint8_t* SHA512_file(char *input_file);
-
-/* Returns the appropriate digest for the [input_file] based on the
- * signature [algorithm].
- * Caller owns the returned digest and must free it.
- */
-uint8_t* calculate_digest(char *input_file, int algorithm);
-
/* Return a signature of [len] bytes read from [input_file].
* Caller owns the returned signature and must free it.
*/
« no previous file with comments | « src/platform/vboot_reference/tests/digest_utility.c ('k') | src/platform/vboot_reference/tests/verify_data.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698