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

Issue 517653002: Make CryptohomeAuthenticator's Login*() methods work with pre-hashed keys (Closed)

Created:
6 years, 3 months ago by bartfab (slow)
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@d_3_367847_add_sha256_key_type
Project:
chromium
Visibility:
Public.

Description

Make CryptohomeAuthenticator's Login*() methods work with pre-hashed keys When a user's cryptohome directory is created with a pre-hashed key, the credentials provided need to be hashed in the same way whenever the crypthome is to be unlocked/mounted. This CL updates the Login*() methods in CryptohomeAuthenticator to retrieve key metadata and apply the correct hashing algorithm to the given credentials. Follow-up CLs will update the other CryptohomeAuthenticator methods to also work with pre-hashed keys. BUG=367847 TEST=Extended unit tests Committed: https://crrev.com/37e866f487685f176c1861ecc507a2f25e2c1a33 Cr-Commit-Position: refs/heads/master@{#293227}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed nit. #

Total comments: 6

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -94 lines) Patch
M chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc View 1 2 15 chunks +130 lines, -42 lines 0 comments Download
M chromeos/cryptohome/mock_homedir_methods.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/cryptohome/mock_homedir_methods.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M chromeos/login/auth/cryptohome_authenticator.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/login/auth/cryptohome_authenticator.cc View 1 2 10 chunks +181 lines, -51 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
bartfab (slow)
bartfab@chromium.org changed reviewers: + antrim@chromium.org, dkrahn@chromium.org
6 years, 3 months ago (2014-08-28 16:44:04 UTC) #1
bartfab (slow)
Hi Denis, Could you review please? Hi Darren, Could you do an owner review of ...
6 years, 3 months ago (2014-08-28 16:44:04 UTC) #2
Darren Krahn
mock_homedir_methods lgtm https://codereview.chromium.org/517653002/diff/1/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc File chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc (right): https://codereview.chromium.org/517653002/diff/1/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc#newcode285 chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc:285: .Times(1) nit: This can be removed. WillOnce() ...
6 years, 3 months ago (2014-08-28 17:52:52 UTC) #3
bartfab (slow)
https://codereview.chromium.org/517653002/diff/1/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc File chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc (right): https://codereview.chromium.org/517653002/diff/1/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc#newcode285 chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc:285: .Times(1) On 2014/08/28 17:52:52, Darren Krahn wrote: > nit: ...
6 years, 3 months ago (2014-08-29 08:30:02 UTC) #4
bartfab (slow)
Hi Denis, Friendly review ping.
6 years, 3 months ago (2014-09-01 17:04:08 UTC) #5
bartfab (slow)
Hi Pavel, It looks like Denis may be out. Could you take a look?
6 years, 3 months ago (2014-09-02 12:30:10 UTC) #7
dzhioev (left Google)
https://codereview.chromium.org/517653002/diff/20001/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc File chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc (right): https://codereview.chromium.org/517653002/diff/20001/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc#newcode823 chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc:823: TEST_F(CryptohomeAuthenticatorTest, FailLoginWithMissingSalt) { What about missing/wrong "type" test? https://codereview.chromium.org/517653002/diff/20001/chromeos/login/auth/cryptohome_authenticator.cc ...
6 years, 3 months ago (2014-09-02 15:56:27 UTC) #8
bartfab (slow)
https://codereview.chromium.org/517653002/diff/20001/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc File chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc (right): https://codereview.chromium.org/517653002/diff/20001/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc#newcode823 chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc:823: TEST_F(CryptohomeAuthenticatorTest, FailLoginWithMissingSalt) { On 2014/09/02 15:56:26, dzhioev wrote: > ...
6 years, 3 months ago (2014-09-02 17:24:58 UTC) #9
dzhioev (left Google)
LTGM
6 years, 3 months ago (2014-09-02 17:46:20 UTC) #10
dzhioev (left Google)
On 2014/09/02 17:46:20, dzhioev wrote: > LTGM Sorry, I meant LGTM =)
6 years, 3 months ago (2014-09-03 16:16:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/517653002/40001
6 years, 3 months ago (2014-09-03 20:30:12 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as edd968e3405fb7c2915c8ab13192e43cdd56257a
6 years, 3 months ago (2014-09-04 00:03:13 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:28:45 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/37e866f487685f176c1861ecc507a2f25e2c1a33
Cr-Commit-Position: refs/heads/master@{#293227}

Powered by Google App Engine
This is Rietveld 408576698