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

Issue 8588057: Added serialization to SecureHash. (Closed)

Created:
9 years, 1 month ago by ahendrickson
Modified:
9 years, 1 month ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added serialization to SecureHash. These will be used to resume hash generation when a download is interrupted and later resumed. BUG=None. TEST=SecureHashTest.TestSerialization Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110842

Patch Set 1 #

Patch Set 2 : Added a serialization unit test for SecureHash. #

Total comments: 4

Patch Set 3 : Fixed typo due to Visual Studio 'helpfulness'. #

Patch Set 4 : Fixed bug. #

Total comments: 10

Patch Set 5 : Added iterator to Deserialize, applied comments from agl. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -0 lines) Patch
M crypto/secure_hash.h View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M crypto/secure_hash_default.cc View 1 2 3 4 3 chunks +48 lines, -0 lines 0 comments Download
M crypto/secure_hash_openssl.cc View 1 2 3 4 2 chunks +49 lines, -0 lines 0 comments Download
M crypto/secure_hash_unittest.cc View 1 2 3 4 2 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
ahendrickson
Hi Randy, I'm working on a unit test, but this is the first pass.
9 years, 1 month ago (2011-11-18 17:51:43 UTC) #1
Randy Smith (Not in Mondays)
Basic architecture LGTM, modulo the question below about maybe making a variant of the Create() ...
9 years, 1 month ago (2011-11-18 19:01:47 UTC) #2
ahendrickson
Now open for wider review. http://codereview.chromium.org/8588057/diff/3001/crypto/secure_hash.h File crypto/secure_hash.h (right): http://codereview.chromium.org/8588057/diff/3001/crypto/secure_hash.h#newcode35 crypto/secure_hash.h:35: // Restore the context ...
9 years, 1 month ago (2011-11-18 19:47:00 UTC) #3
ahendrickson
One note: The fallback position for failing to deserialize (in terms of downloads) is that ...
9 years, 1 month ago (2011-11-18 19:49:46 UTC) #4
agl
http://codereview.chromium.org/8588057/diff/9/crypto/secure_hash_default.cc File crypto/secure_hash_default.cc (right): http://codereview.chromium.org/8588057/diff/9/crypto/secure_hash_default.cc#newcode44 crypto/secure_hash_default.cc:44: const char* SecureHashSHA256NSS::kDescriptor = "NSS"; Move it out of ...
9 years, 1 month ago (2011-11-18 19:57:02 UTC) #5
ahendrickson
http://codereview.chromium.org/8588057/diff/9/crypto/secure_hash_default.cc File crypto/secure_hash_default.cc (right): http://codereview.chromium.org/8588057/diff/9/crypto/secure_hash_default.cc#newcode44 crypto/secure_hash_default.cc:44: const char* SecureHashSHA256NSS::kDescriptor = "NSS"; On 2011/11/18 19:57:02, agl ...
9 years, 1 month ago (2011-11-18 21:23:09 UTC) #6
agl
lgtm
9 years, 1 month ago (2011-11-18 21:26:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/8588057/8001
9 years, 1 month ago (2011-11-18 22:30:17 UTC) #8
commit-bot: I haz the power
Try job failure for 8588057-8001 (retry) on linux_rel for steps "check_deps, ui_tests". It's a second ...
9 years, 1 month ago (2011-11-18 23:43:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/8588057/8001
9 years, 1 month ago (2011-11-19 00:06:13 UTC) #10
commit-bot: I haz the power
Try job failure for 8588057-8001 (retry) (retry) on linux_rel for step "ui_tests". It's a second ...
9 years, 1 month ago (2011-11-19 01:51:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/8588057/8001
9 years, 1 month ago (2011-11-19 15:24:56 UTC) #12
commit-bot: I haz the power
9 years, 1 month ago (2011-11-19 16:54:15 UTC) #13
Change committed as 110842

Powered by Google App Engine
This is Rietveld 408576698