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

Issue 211273009: base::MD5IntermediateFinal() generates digest non-destructively. (Closed)

Created:
6 years, 9 months ago by Scott Hess - ex-Googler
Modified:
6 years, 8 months ago
Reviewers:
awong, Ryan Sleevi
CC:
chromium-reviews, erikwright+watch_chromium.org, Ryan Sleevi
Visibility:
Public.

Description

base::MD5IntermediateFinal() generates digest non-destructively. MD5Final() modifies the context, which prevents calculating an intermediate digest while also continuing to build an overall context. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260731

Patch Set 1 #

Total comments: 2

Patch Set 2 : Commentsmithing, mark context const. #

Total comments: 6

Patch Set 3 : commentsmithing and static char[]. #

Patch Set 4 : Change to suggested comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -0 lines) Patch
M base/md5.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M base/md5.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M base/md5_unittest.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Scott Hess - ex-Googler
Alternative to https://codereview.chromium.org/211503004/ which just cuts to generating an intermediate digest.
6 years, 9 months ago (2014-03-25 20:20:12 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/211273009/diff/1/base/md5.h File base/md5.h (right): https://codereview.chromium.org/211273009/diff/1/base/md5.h#newcode62 base/md5.h:62: // an intermediate digest without affecting the original context. ...
6 years, 9 months ago (2014-03-26 17:49:45 UTC) #2
Scott Hess - ex-Googler
I get the impression that the judges are leaning 57% towards this CL, now? I ...
6 years, 9 months ago (2014-03-27 19:22:34 UTC) #3
awong
I think we should go with this one. @sleevi: scream if you disagree. @shess: sent ...
6 years, 8 months ago (2014-03-31 20:22:19 UTC) #4
Scott Hess - ex-Googler
https://codereview.chromium.org/211273009/diff/50001/base/md5.cc File base/md5.cc (right): https://codereview.chromium.org/211273009/diff/50001/base/md5.cc#newcode264 base/md5.cc:264: * Clone the context and use the clone to ...
6 years, 8 months ago (2014-03-31 20:48:26 UTC) #5
awong
https://codereview.chromium.org/211273009/diff/50001/base/md5.cc File base/md5.cc (right): https://codereview.chromium.org/211273009/diff/50001/base/md5.cc#newcode264 base/md5.cc:264: * Clone the context and use the clone to ...
6 years, 8 months ago (2014-03-31 21:04:32 UTC) #6
Scott Hess - ex-Googler
https://codereview.chromium.org/211273009/diff/50001/base/md5.cc File base/md5.cc (right): https://codereview.chromium.org/211273009/diff/50001/base/md5.cc#newcode264 base/md5.cc:264: * Clone the context and use the clone to ...
6 years, 8 months ago (2014-03-31 21:29:59 UTC) #7
awong
LGTM ship it.
6 years, 8 months ago (2014-03-31 21:34:41 UTC) #8
Scott Hess - ex-Googler
On 2014/03/31 21:34:41, awong wrote: > LGTM > > ship it. Shipping. I won't write ...
6 years, 8 months ago (2014-03-31 21:36:53 UTC) #9
Scott Hess - ex-Googler
The CQ bit was checked by shess@chromium.org
6 years, 8 months ago (2014-03-31 21:36:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/211273009/90001
6 years, 8 months ago (2014-03-31 21:39:01 UTC) #11
awong
On Mon, Mar 31, 2014 at 2:36 PM, <shess@chromium.org> wrote: > On 2014/03/31 21:34:41, awong ...
6 years, 8 months ago (2014-03-31 21:40:17 UTC) #12
Ryan Sleevi
lgtm
6 years, 8 months ago (2014-03-31 21:41:25 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 01:31:41 UTC) #14
Message was sent while issue was closed.
Change committed as 260731

Powered by Google App Engine
This is Rietveld 408576698