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

Issue 11637016: Add "scrypt" to third_party for secure password hashes (Closed)

Created:
8 years ago by bcwhite
Modified:
7 years, 11 months ago
CC:
chromium-reviews, palmer
Visibility:
Public.

Description

Add "scrypt" to third_party for use in generating secure hash of user password that can later be used for off-line authentication in the case when on-line authentication is not available. The planned use for this is profile-locking where unlocking has to be possible even when not connected to a network. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175069

Patch Set 1 #

Patch Set 2 : add scrypt to .gitignore #

Total comments: 2

Patch Set 3 : removed tabs; delay chrome_browser.gypi changes for later CL #

Patch Set 4 : "Base files missing." Trying upload again. #

Patch Set 5 : Added missing licences. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4871 lines, -46 lines) Patch
M .gitignore View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/scrypt/.gitattributes View 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/scrypt/FORMAT View 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/scrypt/LICENSE View 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/scrypt/Makefile.in View 1 chunk +763 lines, -0 lines 0 comments Download
A third_party/scrypt/README.chromium View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/scrypt/chromium.patch View 1 2 3 4 1 chunk +170 lines, -0 lines 0 comments Download
A + third_party/scrypt/config.aux/depcomp View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/scrypt/config.aux/install-sh View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/scrypt/config.aux/missing View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/scrypt/config.h.in View 3 chunks +40 lines, -46 lines 0 comments Download
A third_party/scrypt/configure View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/scrypt/lib/README View 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/crypto/crypto_aesctr.h View 1 chunk +59 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/crypto/crypto_aesctr.c View 1 chunk +124 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/crypto/crypto_scrypt.h View 1 chunk +56 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/crypto/crypto_scrypt-nosse.c View 1 chunk +338 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/crypto/crypto_scrypt-ref.c View 1 chunk +284 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/crypto/crypto_scrypt-sse.c View 1 chunk +366 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/crypto/sha256.h View 1 chunk +62 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/crypto/sha256.c View 1 chunk +412 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/scryptenc/scryptenc.h View 1 chunk +112 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/scryptenc/scryptenc.c View 1 chunk +606 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/scryptenc/scryptenc_cpuperf.h View 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/scryptenc/scryptenc_cpuperf.c View 1 chunk +185 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/util/memlimit.h View 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/util/memlimit.c View 1 chunk +302 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/util/readpass.h View 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/util/readpass.c View 1 chunk +143 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/util/sysendian.h View 1 chunk +140 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/util/warn.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/scrypt/lib/util/warn.c View 1 chunk +75 lines, -0 lines 0 comments Download
A third_party/scrypt/main.c View 1 chunk +181 lines, -0 lines 0 comments Download
A third_party/scrypt/scrypt.1 View 1 chunk +114 lines, -0 lines 0 comments Download
A + third_party/scrypt/scrypt.gyp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
A third_party/scrypt/scrypt_platform.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/scrypt/sysendian.h View 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
bcwhite
8 years ago (2012-12-19 20:29:47 UTC) #1
bcwhite
Ping?
7 years, 11 months ago (2013-01-03 18:02:58 UTC) #2
Daniel Berlin
lgtm
7 years, 11 months ago (2013-01-03 18:44:29 UTC) #3
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 11 months ago (2013-01-03 18:51:47 UTC) #4
bcwhite
Roger, would you review this for submission, please?
7 years, 11 months ago (2013-01-03 19:02:53 UTC) #5
bcwhite
Could I get an OWNER approval for the change to chrome/chrome_browser.gypi Thanks!
7 years, 11 months ago (2013-01-03 19:33:51 UTC) #6
Lei Zhang
Just remove chrome/chrome_browser.gypi from this CL and add it in the future CL that actually ...
7 years, 11 months ago (2013-01-03 20:03:04 UTC) #7
bcwhite
https://codereview.chromium.org/11637016/diff/3001/third_party/scrypt/scrypt.gyp File third_party/scrypt/scrypt.gyp (right): https://codereview.chromium.org/11637016/diff/3001/third_party/scrypt/scrypt.gyp#newcode11 third_party/scrypt/scrypt.gyp:11: 'lib/crypto/sha256.c', On 2013/01/03 20:03:04, Lei Zhang wrote: > No ...
7 years, 11 months ago (2013-01-03 20:23:10 UTC) #8
Lei Zhang
lgtm Please make sure it passes tools/checklicenses/checklicenses.py.
7 years, 11 months ago (2013-01-03 20:45:36 UTC) #9
bcwhite1
I've run it before. That tool spits out *a lot* of warnings! 'third_party/scrypt/lib/util/warn.h' has non-whitelisted ...
7 years, 11 months ago (2013-01-03 21:06:36 UTC) #10
Lei Zhang
On 2013/01/03 21:06:36, bcwhite_google.com wrote: > I've run it before. That tool spits out *a ...
7 years, 11 months ago (2013-01-03 21:10:35 UTC) #11
bcwhite
Okay. Licenses added and patch updated.
7 years, 11 months ago (2013-01-03 21:59:52 UTC) #12
Lei Zhang
lgtm
7 years, 11 months ago (2013-01-03 22:02:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bcwhite@chromium.org/11637016/7003
7 years, 11 months ago (2013-01-03 22:06:03 UTC) #14
commit-bot: I haz the power
Change committed as 175069
7 years, 11 months ago (2013-01-04 00:52:40 UTC) #15
Ryan Sleevi
I'd like to provide some push back on this change, for now. We're trying to ...
7 years, 11 months ago (2013-01-04 19:35:59 UTC) #16
jschuh
Yeah, this is bloat and there's no security justification. It should just be removed. Also, ...
7 years, 11 months ago (2013-01-04 19:52:34 UTC) #17
bcwhite1
> I'd like to provide some push back on this change, for now. > > ...
7 years, 11 months ago (2013-01-04 22:02:45 UTC) #18
jschuh
On 2013/01/04 22:02:45, bcwhite_google.com wrote: > Yeah, this is bloat and there's no security justification. ...
7 years, 11 months ago (2013-01-04 22:16:34 UTC) #19
bcwhite1
> Yeah, this is bloat and there's no security justification. It should just >> be ...
7 years, 11 months ago (2013-01-05 00:00:06 UTC) #20
jschuh
I'm sorry, but nothing in your response has addressed the concerns I've raised. This CL ...
7 years, 11 months ago (2013-01-05 00:28:24 UTC) #21
bcwhite1
7 years, 11 months ago (2013-01-06 03:51:54 UTC) #22
> I'm sorry, but nothing in your response has addressed the concerns I've
> raised.
> This CL introduces a large new dependency and the implied follow-on
> changes have
> major security ramifications that up to this point are entirely unreviewed
> by
> anyone with the appropriate expertise.
>

Incorrect.  It introduces no dependency because nothing references it and
the implied follow-on changes are not part of this CL.  As it stands, it is
only a piece of "dead code".  It is also in no way "large".



> Security reviews for Chrome are not handled via buganizer. And the bug
> you're
> referencing wasn't filed until yesterday, has had no action, and there's no
> context at all for this feature in Chromium's tracker. Absent some better
> explanation of what's going on here, my only option is to revert this CL.
>

Then update the documentation because the link on the security review page
(don't have the URL as I'm not on VPN) took me to a Buganizer submission
form on which I included the link to the full security description.  Did
you even look at the link I provided?



> I'm not trying to be difficult, but the way this CL landed is extremely
> unusual
> for Chrome, and simply not the way we do things. The correct approach to
> this is
> to file a launch-bug, ping the relevant teams (including security) with a
> proposed design, and then reach some consensus before landing code. And
> when
> landing code, make sure your reviewers are aware of the context and intent
> of
> your CLs. Landing this dependency might be correct in the end, but the
> steps to
> determine that haven't been taken as far as I can tell.
>

I apologize for the unusual approach.  I'm new to Chrome and am working on
a part of the project given to me.  I assumed that some security review had
been done before it had been given to me.  I was part of security
discussions with various teams (such as GAIA and ChromeOS) but no official
"security review" had been done.  When I found out this was the case I went
through the process and filled in the information.  This CL had, however,
already been sent for review.

The purpose of the library was spelled out in the description.

  Brian  (now in Montreal, Canada)
  bcwhite@google.com
-----------------------------------------------------------------------------------------
*Treat someone as they are and they will remain that way.
Treat someone as they can be and they will become that way.

*

Powered by Google App Engine
This is Rietveld 408576698