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

Issue 6873156: Move crypto_helpers from sync to base (Closed)

Created:
9 years, 8 months ago by qsr (NOT THE RIGHT qsr)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, brettw-cc_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

Move crypto_helpers from sync to crypto crypto_helpers only depends on resources in base and is used by sync and password_manager. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84223

Patch Set 1 #

Patch Set 2 : Move crypto_helpers to crypto instead of base. #

Total comments: 9

Patch Set 3 : Delete md5 and correct random #

Patch Set 4 : Correct headers. #

Total comments: 12

Patch Set 5 : Refactor in base #

Patch Set 6 : Correct doc and test #

Total comments: 1

Patch Set 7 : Implements RandBytesAsString in terms of RandBytes #

Patch Set 8 : Correct WriteInto length. #

Total comments: 3

Patch Set 9 : Follow agl review #

Total comments: 3

Patch Set 10 : Follow bbretw review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -192 lines) Patch
M base/rand_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -1 line 0 comments Download
M base/rand_util.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -11 lines 0 comments Download
M base/rand_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/encryptor_password_mac.mm View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/syncable/directory_backing_store.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/sync/util/crypto_helpers.h View 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/browser/sync/util/crypto_helpers.cc View 1 chunk +0 lines, -71 lines 0 comments Download
D chrome/browser/sync/util/crypto_helpers_unittest.cc View 1 chunk +0 lines, -27 lines 0 comments Download
M chrome/browser/sync/util/user_settings.cc View 1 2 3 4 5 6 7 8 9 7 chunks +24 lines, -16 lines 0 comments Download
M chrome/browser/sync/util/user_settings_win.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
A chrome/common/random.h View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/common/random.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/common/random_unittest.cc View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M ppapi/shared_impl/crypto_impl.cc View 1 2 3 4 1 chunk +1 line, -8 lines 0 comments Download
M webkit/glue/webkitclient_impl.cc View 1 2 3 4 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
qsr (NOT THE RIGHT qsr)
Dependency cleanup. This patch remove a dependency from password_manager to sync by putting crypto_utils in ...
9 years, 8 months ago (2011-04-21 15:25:29 UTC) #1
qsr (NOT THE RIGHT qsr)
Change this to move to crypto/ instead of base/ Adam, this is the patch I ...
9 years, 8 months ago (2011-04-22 06:39:56 UTC) #2
agl
Sorry for the lateness of my reply. If I haven't replied to a review in ...
9 years, 8 months ago (2011-04-26 13:59:37 UTC) #3
qsr (NOT THE RIGHT qsr)
http://codereview.chromium.org/6873156/diff/2001/crypto/random.cc File crypto/random.cc (right): http://codereview.chromium.org/6873156/diff/2001/crypto/random.cc#newcode25 crypto/random.cc:25: std::string random_bytes(kNumberBytes, ' '); Except that the base64_encode function ...
9 years, 8 months ago (2011-04-26 15:24:18 UTC) #4
Ryan Sleevi
Drive by review, as I saw came across this when looking at some open issues. ...
9 years, 8 months ago (2011-04-27 02:32:24 UTC) #5
Benjamin.Lerman_google.com
Thanks for your input. Right now, I'm not very comfortable continuing on a change that ...
9 years, 8 months ago (2011-04-27 08:05:59 UTC) #6
Ryan Sleevi
> Now, on the review itself: > - No problem for going from PROV_RSA_AES to ...
9 years, 8 months ago (2011-04-27 13:43:08 UTC) #7
wtc
agl: base::RandUint64() is cryptographically strong on Windows. It is implemented using rand_s(), which calls the ...
9 years, 8 months ago (2011-04-28 19:42:22 UTC) #8
Ryan Sleevi
Just a note: abarth has pushed out a very similar CL to wtc's optional suggestion ...
9 years, 8 months ago (2011-04-29 06:52:10 UTC) #9
abarth-chromium
http://codereview.chromium.org/6873156/diff/7003/crypto/random.h File crypto/random.h (right): http://codereview.chromium.org/6873156/diff/7003/crypto/random.h#newcode17 crypto/random.h:17: std::string Generate128BitRandomBase64String(); http://codereview.chromium.org/6904118/ contains a function that generates a ...
9 years, 8 months ago (2011-04-29 07:47:11 UTC) #10
wtc
http://codereview.chromium.org/6873156/diff/7003/crypto/random.h File crypto/random.h (right): http://codereview.chromium.org/6873156/diff/7003/crypto/random.h#newcode17 crypto/random.h:17: std::string Generate128BitRandomBase64String(); On 2011/04/29 07:47:11, abarth wrote: > http://codereview.chromium.org/6904118/ ...
9 years, 7 months ago (2011-04-29 18:07:08 UTC) #11
qsr (NOT THE RIGHT qsr)
Ok, let's try this once more. I move GetRandomBytes to base/rand_util. I did not modify ...
9 years, 7 months ago (2011-05-02 15:16:30 UTC) #12
abarth-chromium
http://codereview.chromium.org/6873156/diff/11004/base/rand_util.cc File base/rand_util.cc (right): http://codereview.chromium.org/6873156/diff/11004/base/rand_util.cc#newcode52 base/rand_util.cc:52: } I'd recommend re-implementing RandBytesAsString in terms of this ...
9 years, 7 months ago (2011-05-02 18:23:20 UTC) #13
qsr (NOT THE RIGHT qsr)
> I'd recommend re-implementing RandBytesAsString in terms of this function. You > can use the ...
9 years, 7 months ago (2011-05-03 07:02:19 UTC) #14
agl
LGTM http://codereview.chromium.org/6873156/diff/16001/base/rand_util.cc File base/rand_util.cc (right): http://codereview.chromium.org/6873156/diff/16001/base/rand_util.cc#newcode47 base/rand_util.cc:47: const char* random_int_bytes = reinterpret_cast<const char*>(&random_int); nit: you ...
9 years, 7 months ago (2011-05-03 14:53:40 UTC) #15
commit-bot: I haz the power
Presubmit check for 6873156-12002 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-03 16:40:12 UTC) #16
brettw
LGTM, just some minor comments before checkin. http://codereview.chromium.org/6873156/diff/12002/base/rand_util.h File base/rand_util.h (right): http://codereview.chromium.org/6873156/diff/12002/base/rand_util.h#newcode32 base/rand_util.h:32: // fills ...
9 years, 7 months ago (2011-05-03 17:36:53 UTC) #17
commit-bot: I haz the power
Try job failure for 6873156-20001 on mac: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=25380
9 years, 7 months ago (2011-05-04 09:36:38 UTC) #18
commit-bot: I haz the power
Try job failure for 6873156-20001 on mac: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=25387
9 years, 7 months ago (2011-05-04 12:59:02 UTC) #19
commit-bot: I haz the power
Try job failure for 6873156-20001 on mac: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=25428
9 years, 7 months ago (2011-05-04 15:46:52 UTC) #20
commit-bot: I haz the power
Try job failure for 6873156-20001 on mac: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=25445
9 years, 7 months ago (2011-05-04 17:06:48 UTC) #21
commit-bot: I haz the power
9 years, 7 months ago (2011-05-05 08:46:13 UTC) #22
Change committed as 84223

Powered by Google App Engine
This is Rietveld 408576698