Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: src/platform/vboot_reference/tests/signature_digest.c

Issue 579007: Add generic wrappers for performing message digest operations. (Closed)
Patch Set: 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/tests/signature_digest.c
diff --git a/src/platform/vboot_reference/tests/signature_digest.c b/src/platform/vboot_reference/tests/signature_digest.c
index 89d98fe120a415aceb3e72bca1e29c0020044b2d..8dcd8c91e59737e51d42f3480dae4bf30a0109f6 100644
--- a/src/platform/vboot_reference/tests/signature_digest.c
+++ b/src/platform/vboot_reference/tests/signature_digest.c
@@ -17,9 +17,9 @@
#include <stdlib.h>
#include <unistd.h>
-#include "digest_utility.h"
#include "padding.h"
#include "sha.h"
+#include "sha_utility.h"
uint8_t* prepend_digestinfo(int algorithm, uint8_t* digest) {
const int digest_size = hash_size_map[algorithm];
@@ -52,7 +52,7 @@ int main(int argc, char* argv[]) {
goto failure;
- if (!(digest = calculate_digest(argv[2], algorithm)))
+ if (!(digest = DigestFile(argv[2], algorithm)))
goto failure;
info_digest = prepend_digestinfo(algorithm, digest);

Powered by Google App Engine
This is Rietveld 408576698