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

Issue 211503004: base::MD5Clone() clones MD5Context. (Closed)

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

Description

[Superseded by https://codereview.chromium.org/211273009 ] base::MD5Clone() clones MD5Context. MD5Final() modifies the context, which prevents calculating an intermediate digest while also continuing to build an uninterrupted context. BUG=none R=ajwong@chromium.org

Patch Set 1 #

Total comments: 1

Patch Set 2 : commentsmithing. #

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 chunk +4 lines, -0 lines 0 comments Download
M base/md5_unittest.cc View 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Scott Hess - ex-Googler
Blame Sleevi. My use case is that I'm using md5 as a checksum over a ...
6 years, 9 months ago (2014-03-25 19:57:44 UTC) #1
awong
https://codereview.chromium.org/211503004/diff/1/base/md5.h File base/md5.h (right): https://codereview.chromium.org/211503004/diff/1/base/md5.h#newcode59 base/md5.h:59: // intermediate digest without affecting the original context. This ...
6 years, 9 months ago (2014-03-25 20:00:41 UTC) #2
Ryan Sleevi
On Mar 25, 2014 1:00 PM, <ajwong@chromium.org> wrote: > > > https://codereview.chromium.org/211503004/diff/1/base/md5.h > File base/md5.h ...
6 years, 9 months ago (2014-03-25 20:16:51 UTC) #3
awong
okay...moar doc plz? On Tue, Mar 25, 2014 at 1:16 PM, Ryan Sleevi <rsleevi@chromium.org> wrote: ...
6 years, 9 months ago (2014-03-25 20:18:33 UTC) #4
Scott Hess - ex-Googler
On 2014/03/25 20:00:41, awong wrote: > https://codereview.chromium.org/211503004/diff/1/base/md5.h > File base/md5.h (right): > > https://codereview.chromium.org/211503004/diff/1/base/md5.h#newcode59 > ...
6 years, 9 months ago (2014-03-25 20:19:53 UTC) #5
Scott Hess - ex-Googler
Sorry for the write-after-write conflict. I will also go upgrade this one's documentation. On Tue, ...
6 years, 9 months ago (2014-03-25 20:20:55 UTC) #6
Scott Hess - ex-Googler
Updated the comment. I think it's still atrocious. I don't fully agree with the generality ...
6 years, 9 months ago (2014-03-25 20:36:39 UTC) #7
awong
@sleevi: how often do we actually expect people in Chrome to clone contexts except in ...
6 years, 9 months ago (2014-03-25 20:40:48 UTC) #8
Ryan Sleevi
On 2014/03/25 20:40:48, awong wrote: > @sleevi: how often do we actually expect people in ...
6 years, 9 months ago (2014-03-25 21:09:56 UTC) #9
awong
It sounds rare enough that we should go with the simple one first. Heck, even ...
6 years, 9 months ago (2014-03-25 21:37:00 UTC) #10
Ryan Sleevi
6 years, 9 months ago (2014-03-26 17:45:13 UTC) #11
On 2014/03/25 21:37:00, awong wrote:
> It sounds rare enough that we should go with the simple one first.  Heck,
> even if you add clone, it sound like a less error-prone wrapper for those
> who aren't quite as fluent in crypto APIs.
> 
> -Albert

Not entirely sure I get what you mean by "less error prone" (just that you
finalize/delete what you copy?)

Anyways, I suspect it's a debate about high-level API composed of two ops versus
a low-level API that exposes both ops, and for this use case, either is fine.

Powered by Google App Engine
This is Rietveld 408576698