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

Unified Diff: src/platform/vboot_reference/include/signature_digest.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/signature_digest.h
diff --git a/src/platform/vboot_reference/include/signature_digest.h b/src/platform/vboot_reference/include/signature_digest.h
index 291c5994ab2a9e69e01dc2e4f4a08308bf743c13..2376b972105e2451fb21f8a48cab93940365bd37 100644
--- a/src/platform/vboot_reference/include/signature_digest.h
+++ b/src/platform/vboot_reference/include/signature_digest.h
@@ -22,7 +22,7 @@ uint8_t* prepend_digestinfo(int algorithm, uint8_t* digest);
* choice of the hash algorithm (see padding.c). Caller owns the returned
* pointer and must Free() it.
*/
-uint8_t* SignatureDigest(const uint8_t* buf, int len, int algorithm);
+uint8_t* SignatureDigest(const uint8_t* buf, uint64_t len, int algorithm);
/* Calculates the signature on a buffer [buf] of length [len] using
* the private RSA key file from [key_file] and signature algorithm
@@ -30,6 +30,6 @@ uint8_t* SignatureDigest(const uint8_t* buf, int len, int algorithm);
*
* Returns the signature. Caller owns the buffer and must Free() it.
*/
-uint8_t* SignatureBuf(const uint8_t* buf, int len, const char* key_file,
+uint8_t* SignatureBuf(const uint8_t* buf, uint64_t len, const char* key_file,
int algorithm);
#endif /* VBOOT_REFERENCE_SIGNATURE_DIGEST_H_ */

Powered by Google App Engine
This is Rietveld 408576698