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

Unified Diff: omaha_hash_calculator.h

Issue 3712003: AU: Verify source rootfs/kernel hashes before applying delta. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: verify source partitions only for new updates Created 10 years, 2 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
« no previous file with comments | « install_plan.h ('k') | omaha_hash_calculator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_hash_calculator.h
diff --git a/omaha_hash_calculator.h b/omaha_hash_calculator.h
index 5daba78b38f099e857a83a9771a05990d2fe1a1c..dc9fe4ef02099cf16a9b3282b0a886d37d4237c7 100644
--- a/omaha_hash_calculator.h
+++ b/omaha_hash_calculator.h
@@ -62,6 +62,8 @@ class OmahaHashCalculator {
static bool RawHashOfData(const std::vector<char>& data,
std::vector<char>* out_hash);
+ static off_t RawHashOfFile(const std::string& name, off_t length,
+ std::vector<char>* out_hash);
// Used by tests
static std::string OmahaHashOfBytes(const void* data, size_t length);
« no previous file with comments | « install_plan.h ('k') | omaha_hash_calculator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698