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

Issue 6276002: Abstracts SHA256 context for NSS / OpenSSL. (Closed)

Created:
9 years, 11 months ago by bulach
Modified:
9 years, 7 months ago
Reviewers:
joth, wtc, lzheng
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Abstracts SHA256 context for NSS / OpenSSL. Stubs out SslServerSocket for OpenSSL. BUG=none TEST=Sha256Test.TestContext (and compiles with openssl flag). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72782

Patch Set 1 : Implements SHA256Context abstracting NSS / OpenSSL. #

Total comments: 10

Patch Set 2 : Moves to SecureHash (and other comments) #

Total comments: 18

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -17 lines) Patch
M base/base.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
A base/crypto/secure_hash.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A base/crypto/secure_hash_nss.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A base/crypto/secure_hash_openssl.cc View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A base/crypto/secure_hash_unittest.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/download/base_file.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/download/base_file.cc View 1 2 5 chunks +7 lines, -14 lines 0 comments Download
M net/base/openssl_memory_private_key_store.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M net/net.gyp View 1 2 chunks +2 lines, -0 lines 0 comments Download
A net/socket/ssl_server_socket_openssl.cc View 1 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
bulach
Hi Lei Zheng, We have an experimental build that uses openssl instead of nss. This ...
9 years, 11 months ago (2011-01-14 17:09:27 UTC) #1
bulach
ping? :)
9 years, 11 months ago (2011-01-21 12:11:06 UTC) #2
wtc
LGTM. I suggest some renaming below. http://codereview.chromium.org/6276002/diff/6001/base/sha2.h File base/sha2.h (right): http://codereview.chromium.org/6276002/diff/6001/base/sha2.h#newcode34 base/sha2.h:34: class SHA256Context { ...
9 years, 11 months ago (2011-01-21 22:48:50 UTC) #3
lzheng
I got only one nit. http://codereview.chromium.org/6276002/diff/6001/net/socket/ssl_server_socket_openssl.cc File net/socket/ssl_server_socket_openssl.cc (right): http://codereview.chromium.org/6276002/diff/6001/net/socket/ssl_server_socket_openssl.cc#newcode5 net/socket/ssl_server_socket_openssl.cc:5: #include "net/socket/ssl_server_socket.h" nit: put ...
9 years, 11 months ago (2011-01-24 18:46:35 UTC) #4
bulach
thanks both! I addressed all comments and renamed / moved things around as appropriate. would ...
9 years, 11 months ago (2011-01-24 20:54:33 UTC) #5
wtc
LGTM. High-level comments: Please add the new secure_hash files to base/crypto instead of the top-level ...
9 years, 11 months ago (2011-01-25 19:06:42 UTC) #6
bulach
thanks Wan-Teh! all comments addressed. if you're ok, I'd like to keep the ssl_server_socket_openssl.cc in ...
9 years, 11 months ago (2011-01-25 20:33:28 UTC) #7
bulach
http://codereview.chromium.org/6276002/diff/18001/base/secure_hash.h File base/secure_hash.h (right): http://codereview.chromium.org/6276002/diff/18001/base/secure_hash.h#newcode12 base/secure_hash.h:12: #include "base/sha2.h" On 2011/01/25 19:06:43, wtc wrote: > This ...
9 years, 11 months ago (2011-01-25 20:33:41 UTC) #8
wtc
LGTM. It's fine to keep ssl_server_socket_openssl.cc in this CL. Your rewrite of the comment for ...
9 years, 11 months ago (2011-01-26 23:39:37 UTC) #9
bulach
thanks! there was an issue with this patch, I had to rename secure_hash_nss to secure_hash, ...
9 years, 11 months ago (2011-01-27 11:59:29 UTC) #10
joth
(Late comments as I was out at the time) On 2011/01/25 19:06:42, wtc wrote: > ...
9 years, 8 months ago (2011-04-06 14:00:06 UTC) #11
wtc
The current SecureHash class has only incremental methods, but we can add a one-shot hash ...
9 years, 8 months ago (2011-04-06 14:12:27 UTC) #12
joth
9 years, 8 months ago (2011-04-06 14:51:41 UTC) #13
OK, thanks for the clarification.

On 6 April 2011 15:12, <wtc@chromium.org> wrote:

> The current SecureHash class has only incremental methods,
> but we can add a one-shot hash method to SecureHash.  The
> most interesting feature of SecureHash is that it allows us
> to use the same interface for multiple hash algorithms.
>
> When SecureHash is fully implemented, it will be able to
> replace sha1.h and sha2.h.  We can keep sha1.h and sha2.h as
> convenience functions.
>
>
> http://codereview.chromium.org/6276002/
>

Powered by Google App Engine
This is Rietveld 408576698