Index: src/platform/vboot_reference/include/sha.h |
diff --git a/src/platform/vboot_reference/include/sha.h b/src/platform/vboot_reference/include/sha.h |
index 9953f8dca12c72116d953f66feaf7f98ef983a34..c3edcbc20d92b3b23cb01cd1d894f855f3b35597 100644 |
--- a/src/platform/vboot_reference/include/sha.h |
+++ b/src/platform/vboot_reference/include/sha.h |
@@ -51,34 +51,34 @@ typedef struct { |
void SHA1_init(SHA1_CTX* ctx); |
-void SHA1_update(SHA1_CTX* ctx, const uint8_t* data, int len); |
+void SHA1_update(SHA1_CTX* ctx, const uint8_t* data, uint64_t len); |
uint8_t* SHA1_final(SHA1_CTX* ctx); |
void SHA256_init(SHA256_CTX* ctx); |
-void SHA256_update(SHA256_CTX* ctx, const uint8_t* data, int len); |
+void SHA256_update(SHA256_CTX* ctx, const uint8_t* data, uint64_t len); |
uint8_t* SHA256_final(SHA256_CTX* ctx); |
void SHA512_init(SHA512_CTX* ctx); |
-void SHA512_update(SHA512_CTX* ctx, const uint8_t* data, int len); |
+void SHA512_update(SHA512_CTX* ctx, const uint8_t* data, uint64_t len); |
uint8_t* SHA512_final(SHA512_CTX* ctx); |
/* Convenience function for SHA-1. Computes hash on [data] of length [len]. |
* and stores it into [digest]. [digest] should be pre-allocated to |
* SHA1_DIGEST_SIZE bytes. |
*/ |
-uint8_t* SHA1(const uint8_t* data, int len, uint8_t* digest); |
+uint8_t* SHA1(const uint8_t* data, uint64_t len, uint8_t* digest); |
/* Convenience function for SHA-256. Computes hash on [data] of length [len]. |
* and stores it into [digest]. [digest] should be pre-allocated to |
* SHA256_DIGEST_SIZE bytes. |
*/ |
-uint8_t* SHA256(const uint8_t* data, int len, uint8_t* digest); |
+uint8_t* SHA256(const uint8_t* data, uint64_t len, uint8_t* digest); |
/* Convenience function for SHA-512. Computes hash on [data] of length [len]. |
* and stores it into [digest]. [digest] should be pre-allocated to |
* SHA512_DIGEST_SIZE bytes. |
*/ |
-uint8_t* SHA512(const uint8_t* data, int len, uint8_t* digest); |
+uint8_t* SHA512(const uint8_t* data, uint64_t len, uint8_t* digest); |
#endif /* VBOOT_REFERENCE_SHA_H_ */ |