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

Issue 554043003: cros: Create cryptohome keys for Easy sign-in. (Closed)

Created:
6 years, 3 months ago by xiyuan
Modified:
6 years, 3 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, Tim Song
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cros: Create cryptohome keys for Easy sign-in. - Add code to add/remove/get cryptohome keys for Easy sign-in; - Add an EasyUnlockKeyManager to wrap the operations and provide an API; - Re-create crypthome keys with pairing data in user prefs on user sign-in; BUG=394640, 394641 Committed: https://crrev.com/a0e92b0829a31efaa403709216db696a4614e228 Cr-Commit-Position: refs/heads/master@{#294901}

Patch Set 1 #

Patch Set 2 : fix use-after-free #

Total comments: 20

Patch Set 3 : use user key hash as secret #

Patch Set 4 : for comments in #2 #

Total comments: 4

Patch Set 5 : fix nit in #4 #

Patch Set 6 : support multiple get key op, create key first then trim extra, lazily create manager #

Total comments: 9

Patch Set 7 : for #6 #

Total comments: 6

Patch Set 8 : rebase on 526353002 #

Patch Set 9 : rebase on trunk #

Patch Set 10 : update histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1180 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc View 1 2 3 4 5 6 7 1 chunk +363 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.h View 1 2 3 4 5 6 7 8 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc View 1 2 3 4 5 6 7 1 chunk +108 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h View 1 2 3 4 5 6 1 chunk +117 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc View 1 2 3 4 5 6 1 chunk +213 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_remove_keys_operation.h View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_remove_keys_operation.cc View 1 2 3 4 5 1 chunk +70 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.h View 1 2 3 4 5 5 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 5 chunks +44 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/cryptohome/cryptohome_parameters.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/cryptohome/cryptohome_parameters.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
xiyuan
Tony, please do overall review. Darren and Pavel could focus on: chromeos/cryptohome/* chromeos/login/auth/* Thanks.
6 years, 3 months ago (2014-09-08 22:09:16 UTC) #2
tbarzic
https://codereview.chromium.org/554043003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc (right): https://codereview.chromium.org/554043003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc#newcode159 chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc:159: tpm_pub_key_, I think android expect this to be GenericPublicKey ...
6 years, 3 months ago (2014-09-09 19:32:21 UTC) #4
dzhioev (left Google)
Hello. Xiyuan, can you share with me a design doc describing this feature?
6 years, 3 months ago (2014-09-09 20:01:40 UTC) #5
xiyuan
On 2014/09/09 20:01:40, dzhioev wrote: > Hello. Xiyuan, can you share with me a design ...
6 years, 3 months ago (2014-09-09 20:15:08 UTC) #6
xiyuan
https://codereview.chromium.org/554043003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc (right): https://codereview.chromium.org/554043003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc#newcode159 chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.cc:159: tpm_pub_key_, On 2014/09/09 19:32:21, tbarzic wrote: > I think ...
6 years, 3 months ago (2014-09-09 20:25:31 UTC) #7
tbarzic
lgtm https://codereview.chromium.org/554043003/diff/80001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h (right): https://codereview.chromium.org/554043003/diff/80001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h#newcode56 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h:56: // false if the conversion fails. Note that ...
6 years, 3 months ago (2014-09-09 20:52:24 UTC) #8
xiyuan
https://codereview.chromium.org/554043003/diff/80001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h (right): https://codereview.chromium.org/554043003/diff/80001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h#newcode56 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h:56: // false if the conversion fails. Note that EasyUnlockDeviceKeyData ...
6 years, 3 months ago (2014-09-09 21:13:54 UTC) #9
xiyuan
Toni, please take another look at PS #6 when you get time. The followings are ...
6 years, 3 months ago (2014-09-09 22:28:35 UTC) #10
tbarzic
https://codereview.chromium.org/554043003/diff/120001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc (right): https://codereview.chromium.org/554043003/diff/120001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc#newcode80 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc:80: const GetDeviceDataListCallback& callback) { should this be throttled if ...
6 years, 3 months ago (2014-09-10 19:01:12 UTC) #11
xiyuan
https://codereview.chromium.org/554043003/diff/120001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc (right): https://codereview.chromium.org/554043003/diff/120001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc#newcode80 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc:80: const GetDeviceDataListCallback& callback) { On 2014/09/10 19:01:11, tbarzic wrote: ...
6 years, 3 months ago (2014-09-10 20:37:13 UTC) #12
tbarzic
lgtm https://codereview.chromium.org/554043003/diff/120001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc (right): https://codereview.chromium.org/554043003/diff/120001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc#newcode80 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc:80: const GetDeviceDataListCallback& callback) { On 2014/09/10 20:37:13, xiyuan ...
6 years, 3 months ago (2014-09-10 20:43:40 UTC) #13
Darren Krahn
https://codereview.chromium.org/554043003/diff/140001/chromeos/cryptohome/cryptohome_parameters.h File chromeos/cryptohome/cryptohome_parameters.h (right): https://codereview.chromium.org/554043003/diff/140001/chromeos/cryptohome/cryptohome_parameters.h#newcode34 chromeos/cryptohome/cryptohome_parameters.h:34: void SetNumber(int64 number); style nit: mutators should match var ...
6 years, 3 months ago (2014-09-12 16:35:18 UTC) #14
xiyuan
Rebased. Now this CL depends on https://codereview.chromium.org/526353002/. https://codereview.chromium.org/554043003/diff/140001/chromeos/cryptohome/cryptohome_parameters.h File chromeos/cryptohome/cryptohome_parameters.h (right): https://codereview.chromium.org/554043003/diff/140001/chromeos/cryptohome/cryptohome_parameters.h#newcode34 chromeos/cryptohome/cryptohome_parameters.h:34: void SetNumber(int64 ...
6 years, 3 months ago (2014-09-12 19:10:12 UTC) #15
Darren Krahn
On 2014/09/12 19:10:12, xiyuan wrote: > Rebased. Now this CL depends on https://codereview.chromium.org/526353002/. > > ...
6 years, 3 months ago (2014-09-12 19:12:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/554043003/180001
6 years, 3 months ago (2014-09-15 19:16:38 UTC) #18
xiyuan
Ilya, please help with histograms.xml change. Thanks.
6 years, 3 months ago (2014-09-15 20:21:03 UTC) #21
Ilya Sherman
histograms.xml LGTM
6 years, 3 months ago (2014-09-15 20:51:24 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/554043003/200001
6 years, 3 months ago (2014-09-15 21:01:12 UTC) #24
commit-bot: I haz the power
Committed patchset #10 (id:200001) as 3e17116250d542921cb7df9fc70f5c9061a8236a
6 years, 3 months ago (2014-09-15 22:25:08 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 22:35:09 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a0e92b0829a31efaa403709216db696a4614e228
Cr-Commit-Position: refs/heads/master@{#294901}

Powered by Google App Engine
This is Rietveld 408576698