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

Issue 10543146: Use NSS for symmetric key crypto operations on Windows and Mac. (Closed)

Created:
8 years, 6 months ago by ddorwin
Modified:
8 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, Nick Bray (chromium)
Visibility:
Public.

Description

Use NSS for symmetric key crypto operations on Windows and Mac. Encryptor, HMAC, and SymmetricKey now use NSS on all platforms except Android. This allows us to use them inside the sandbox, something that was not possible when using the platform APIs. On Windows, Native Client 64-bit builds still use the the platform APIs. BUG=127803, 124741 TEST=Existing tests since there is no change in functionality. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142356

Patch Set 1 #

Patch Set 2 : Use !defined(USE_OPENSSL) or #else instead of defined(USING_NSS) #

Total comments: 13

Patch Set 3 : Addressed feedback and fixed more tests. #

Patch Set 4 : restored export_dependent_settings #

Patch Set 5 : Fix Windows compile failure in newly enabled test #

Patch Set 6 : Fixed Windows shared library build (also need NSS DEPS roll) #

Total comments: 10

Patch Set 7 : Rolled NSS version #

Patch Set 8 : review feedback #

Total comments: 6

Patch Set 9 : addressed feedback #

Total comments: 2

Patch Set 10 : removed DEPS; rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -503 lines) Patch
M chrome/renderer/chrome_render_process_observer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M crypto/crypto.gyp View 1 2 3 4 5 6 7 8 7 chunks +17 lines, -4 lines 0 comments Download
M crypto/encryptor.h View 1 2 3 4 5 4 chunks +3 lines, -14 lines 0 comments Download
D crypto/encryptor_mac.cc View 1 2 1 chunk +0 lines, -84 lines 0 comments Download
M crypto/encryptor_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +25 lines, -15 lines 0 comments Download
D crypto/encryptor_win.cc View 1 2 1 chunk +0 lines, -128 lines 0 comments Download
D crypto/hmac_mac.cc View 1 2 1 chunk +0 lines, -79 lines 0 comments Download
M crypto/symmetric_key.h View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -18 lines 0 comments Download
D crypto/symmetric_key_mac.cc View 1 2 1 chunk +0 lines, -159 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
Ryan Sleevi
http://codereview.chromium.org/10543146/diff/2001/crypto/crypto.gyp File crypto/crypto.gyp (right): http://codereview.chromium.org/10543146/diff/2001/crypto/crypto.gyp#newcode70 crypto/crypto.gyp:70: 'symmetric_key_mac.cc', nit: sorting nit: line wrapping issue: You already ...
8 years, 6 months ago (2012-06-13 20:39:51 UTC) #1
ddorwin
Thanks. I made the requested changes. Running bots now. http://codereview.chromium.org/10543146/diff/2001/crypto/crypto.gyp File crypto/crypto.gyp (right): http://codereview.chromium.org/10543146/diff/2001/crypto/crypto.gyp#newcode70 crypto/crypto.gyp:70: ...
8 years, 6 months ago (2012-06-13 21:53:23 UTC) #2
ddorwin
http://codereview.chromium.org/10543146/diff/2001/crypto/crypto.gyp File crypto/crypto.gyp (right): http://codereview.chromium.org/10543146/diff/2001/crypto/crypto.gyp#newcode112 crypto/crypto.gyp:112: '../third_party/nss/nss.gyp:nss', On 2012/06/13 21:53:23, ddorwin wrote: > On 2012/06/13 ...
8 years, 6 months ago (2012-06-13 22:43:42 UTC) #3
ddorwin
Passes all try bots, Windows shared library builds now work (once http://codereview.chromium.org/10537178/ lands and is ...
8 years, 6 months ago (2012-06-14 19:21:53 UTC) #4
Ryan Sleevi
+cc ncbray, who can hopefully indicate whether or not this looks right for NaCL and, ...
8 years, 6 months ago (2012-06-14 19:35:26 UTC) #5
Nick Bray
+cc bradnelson who helped me with the original gyp changes. There's a lot about this ...
8 years, 6 months ago (2012-06-14 20:37:06 UTC) #6
ddorwin
http://codereview.chromium.org/10543146/diff/2015/chrome/renderer/chrome_render_process_observer.cc File chrome/renderer/chrome_render_process_observer.cc (right): http://codereview.chromium.org/10543146/diff/2015/chrome/renderer/chrome_render_process_observer.cc#newcode190 chrome/renderer/chrome_render_process_observer.cc:190: // (On all platforms, RNG is primed in WebKit ...
8 years, 6 months ago (2012-06-14 20:44:19 UTC) #7
Ryan Sleevi
I'm very curious the problems that you think Chrome has papered over. We're certainly not ...
8 years, 6 months ago (2012-06-14 20:54:48 UTC) #8
Nick Bray
> I'm very curious the problems that you think Chrome has papered over. We're > ...
8 years, 6 months ago (2012-06-14 21:16:43 UTC) #9
wtc
Review comments on patch set 8: I didn't read the changes to the GYP files. ...
8 years, 6 months ago (2012-06-14 21:28:48 UTC) #10
ddorwin
http://codereview.chromium.org/10543146/diff/11006/chrome/renderer/chrome_render_process_observer.cc File chrome/renderer/chrome_render_process_observer.cc (right): http://codereview.chromium.org/10543146/diff/11006/chrome/renderer/chrome_render_process_observer.cc#newcode189 chrome/renderer/chrome_render_process_observer.cc:189: // On Linux, NSS uses system libraries, so the ...
8 years, 6 months ago (2012-06-14 22:01:55 UTC) #11
wtc
Patch set 9 LGTM. I didn't review crypto.gyp.
8 years, 6 months ago (2012-06-14 23:01:19 UTC) #12
Ryan Sleevi
Note: Please hold off on committing until Brad or Nick can further review. I'm not ...
8 years, 6 months ago (2012-06-14 23:04:39 UTC) #13
bradn
At a glance your just bringing in more injected stuff from nss, since it looks ...
8 years, 6 months ago (2012-06-15 00:10:27 UTC) #14
Ryan Sleevi
On 2012/06/15 00:10:27, bradn wrote: > At a glance your just bringing in more injected ...
8 years, 6 months ago (2012-06-15 00:13:40 UTC) #15
bradn
Sounds good. On Thu, Jun 14, 2012 at 5:13 PM, <rsleevi@chromium.org> wrote: > On 2012/06/15 ...
8 years, 6 months ago (2012-06-15 00:31:42 UTC) #16
Nick Bray
nacl64.exe (Win64) and nacl_helper (Linux) are the two standalone NaCl binaries. On Win32 and Mac, ...
8 years, 6 months ago (2012-06-15 00:31:59 UTC) #17
wtc
http://codereview.chromium.org/10543146/diff/1011/DEPS File DEPS (right): http://codereview.chromium.org/10543146/diff/1011/DEPS#newcode65 DEPS:65: "nss_revision": "142187", ddorwin: If I commit my CL http://codereview.chromium.org/10548059/ ...
8 years, 6 months ago (2012-06-15 00:32:16 UTC) #18
Ryan Sleevi
On 2012/06/15 00:31:59, Nick Bray wrote: > nacl64.exe (Win64) and nacl_helper (Linux) are the two ...
8 years, 6 months ago (2012-06-15 00:37:37 UTC) #19
Ryan Sleevi
Met with Nick, talked about all the dependencies, sounds like we're fine. LGTM.
8 years, 6 months ago (2012-06-15 01:15:11 UTC) #20
ddorwin
Thanks everyone! http://codereview.chromium.org/10543146/diff/1011/DEPS File DEPS (right): http://codereview.chromium.org/10543146/diff/1011/DEPS#newcode65 DEPS:65: "nss_revision": "142187", On 2012/06/15 00:32:16, wtc wrote: ...
8 years, 6 months ago (2012-06-15 04:35:25 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ddorwin@chromium.org/10543146/3026
8 years, 6 months ago (2012-06-15 05:39:00 UTC) #22
commit-bot: I haz the power
8 years, 6 months ago (2012-06-15 08:11:53 UTC) #23
Change committed as 142356

Powered by Google App Engine
This is Rietveld 408576698