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

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

Issue 744002: Vboot Reference: Make length types explicitly sized. (Closed)
Patch Set: Created 10 years, 9 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/sha_utility.h
diff --git a/src/platform/vboot_reference/include/sha_utility.h b/src/platform/vboot_reference/include/sha_utility.h
index c5e23317e6392783d4c0763381166fbdfb280935..21a5e18a274452e67ace0c7dfb75284aff6288c7 100644
--- a/src/platform/vboot_reference/include/sha_utility.h
+++ b/src/platform/vboot_reference/include/sha_utility.h
@@ -33,7 +33,7 @@ typedef struct DigestContext {
/* Initialize a digest context for use with signature algorithm [algorithm]. */
void DigestInit(DigestContext* ctx, int sig_algorithm);
-void DigestUpdate(DigestContext* ctx, const uint8_t* data, int len);
+void DigestUpdate(DigestContext* ctx, const uint8_t* data, uint64_t len);
/* Caller owns the returned digest and must free it. */
uint8_t* DigestFinal(DigestContext* ctx);
@@ -48,6 +48,6 @@ uint8_t* DigestFile(char* input_file, int sig_algorithm);
* [len] based on the signature [algorithm].
* Caller owns the returned digest and must free it.
*/
-uint8_t* DigestBuf(const uint8_t* buf, int len, int sig_algorithm);
+uint8_t* DigestBuf(const uint8_t* buf, uint64_t len, int sig_algorithm);
#endif /* VBOOT_REFERENCE_SHA_UTILITY_H_ */

Powered by Google App Engine
This is Rietveld 408576698