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

Issue 687733004: Implement crypto signature verification routines using OpenSSL. (Closed)

Created:
6 years, 1 month ago by Kevin M
Modified:
6 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement crypto signature verification routines using OpenSSL. BUG=426948 R=mfoltz@chromium.org,wez@chromium.org,davidben@chromium.org Committed: https://crrev.com/311d5b8414d195abf8346b48900661503b83be57 Cr-Commit-Position: refs/heads/master@{#302520}

Patch Set 1 #

Patch Set 2 : Remove CL #684553003 from diffset #

Patch Set 3 : Standardized capitalization of error strings, quick fixes #

Total comments: 35

Patch Set 4 : Added unit tests, removed spurious NSS prefix #

Patch Set 5 : Misc. fixes #

Total comments: 22

Patch Set 6 : Addressed code review feedback #

Total comments: 4

Patch Set 7 : Broke off error reporting into separate branch, made unit tests security lib agnostic #

Total comments: 8

Patch Set 8 : BUILD.gn and misc. cleanup changes #

Patch Set 9 : Resync with master #

Patch Set 10 : Fix const truncation warning (raised by Win builds.) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+631 lines, -92 lines) Patch
M extensions/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_ica.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util.h View 1 2 3 4 5 6 7 3 chunks +11 lines, -8 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util.cc View 1 2 3 4 5 6 7 2 chunks +51 lines, -26 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util_nss.cc View 1 2 3 4 6 chunks +17 lines, -39 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util_openssl.cc View 1 2 3 4 5 6 7 1 chunk +126 lines, -3 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_auth_util_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +395 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_apitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/logger.cc View 1 2 3 5 6 1 chunk +8 lines, -8 lines 0 comments Download
M extensions/browser/api/cast_channel/logger_unittest.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M extensions/common/api/cast_channel/logging.proto View 1 2 3 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (5 generated)
Kevin Marshall
Unit tests not done yet - OpenSSL unit tests are broken in head and lkgr. ...
6 years, 1 month ago (2014-10-29 00:04:46 UTC) #2
Kevin Marshall
6 years, 1 month ago (2014-10-29 00:19:02 UTC) #3
davidben
Looks good. I have some minor comments, but I think this is just missing the ...
6 years, 1 month ago (2014-10-30 18:37:24 UTC) #4
mark a. foltz
There appears to be a duplicated sentence in the description :) https://codereview.chromium.org/687733004/diff/40001/extensions/browser/api/cast_channel/cast_auth_util.h File extensions/browser/api/cast_channel/cast_auth_util.h (right): ...
6 years, 1 month ago (2014-10-31 06:49:12 UTC) #5
mark a. foltz
One more comment - we should add an openssl_error_code property to LastErrors, AuthResult and ErrorInfo ...
6 years, 1 month ago (2014-10-31 06:52:22 UTC) #6
Kevin M
https://codereview.chromium.org/687733004/diff/40001/extensions/browser/api/cast_channel/cast_auth_util.h File extensions/browser/api/cast_channel/cast_auth_util.h (right): https://codereview.chromium.org/687733004/diff/40001/extensions/browser/api/cast_channel/cast_auth_util.h#newcode28 extensions/browser/api/cast_channel/cast_auth_util.h:28: ERROR_NSS_CERT_PARSING_FAILED, On 2014/10/31 06:49:11, mark a. foltz wrote: > ...
6 years, 1 month ago (2014-10-31 21:39:38 UTC) #7
Kevin M
Added unit tests.
6 years, 1 month ago (2014-10-31 21:57:24 UTC) #8
mark a. foltz
A few comments about handling errors from the openssl library and unit tests. If you ...
6 years, 1 month ago (2014-10-31 22:29:26 UTC) #9
Kevin M
https://codereview.chromium.org/687733004/diff/80001/extensions/browser/api/cast_channel/cast_auth_util.h File extensions/browser/api/cast_channel/cast_auth_util.h (right): https://codereview.chromium.org/687733004/diff/80001/extensions/browser/api/cast_channel/cast_auth_util.h#newcode60 extensions/browser/api/cast_channel/cast_auth_util.h:60: // of OpenSSL errors. On 2014/10/31 22:29:25, mark a. ...
6 years, 1 month ago (2014-11-01 00:03:05 UTC) #10
davidben
I haven't had a chance to look at the new version carefully, but responding to ...
6 years, 1 month ago (2014-11-01 00:19:35 UTC) #12
mark a. foltz
I would be fine deferring more refined error handling to another patch, to improve the ...
6 years, 1 month ago (2014-11-01 19:59:40 UTC) #13
Kevin M
All right, I made the suggested changes, and moved the error reporting to a separate ...
6 years, 1 month ago (2014-11-03 18:31:46 UTC) #14
Kevin M
+rockot for gyp review (thanks!)
6 years, 1 month ago (2014-11-03 18:32:12 UTC) #16
Kevin M
https://codereview.chromium.org/687733004/diff/80001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc File extensions/browser/api/cast_channel/cast_auth_util_openssl.cc (right): https://codereview.chromium.org/687733004/diff/80001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc#newcode34 extensions/browser/api/cast_channel/cast_auth_util_openssl.cc:34: while (ERR_get_error_line(&filename, &line_num) != 0) { On 2014/11/01 00:19:34, ...
6 years, 1 month ago (2014-11-03 18:35:58 UTC) #17
Ken Rockot(use gerrit already)
On 2014/11/03 18:35:58, Kevin M wrote: > https://codereview.chromium.org/687733004/diff/80001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc > File extensions/browser/api/cast_channel/cast_auth_util_openssl.cc (right): > > https://codereview.chromium.org/687733004/diff/80001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc#newcode34 ...
6 years, 1 month ago (2014-11-03 18:59:04 UTC) #18
davidben
Thanks! lgtm with the BUILD.gn update. (Might want to do another run of try jobs, ...
6 years, 1 month ago (2014-11-03 19:01:50 UTC) #19
mark a. foltz
lgtm % some minor comments. https://codereview.chromium.org/687733004/diff/120001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/687733004/diff/120001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode89 extensions/browser/api/cast_channel/cast_auth_util.cc:89: VLOG(1) << result.error_message; Perhaps ...
6 years, 1 month ago (2014-11-03 19:06:27 UTC) #20
Kevin M
Also made changes to BUILD.gn. https://codereview.chromium.org/687733004/diff/80001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc File extensions/browser/api/cast_channel/cast_auth_util_openssl.cc (right): https://codereview.chromium.org/687733004/diff/80001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc#newcode135 extensions/browser/api/cast_channel/cast_auth_util_openssl.cc:135: if (!ctx) { On ...
6 years, 1 month ago (2014-11-03 19:41:56 UTC) #21
Kevin M
6 years, 1 month ago (2014-11-03 19:42:03 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/687733004/160001
6 years, 1 month ago (2014-11-03 20:09:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/687733004/180001
6 years, 1 month ago (2014-11-03 22:46:27 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001)
6 years, 1 month ago (2014-11-03 23:45:12 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 23:46:27 UTC) #28
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/311d5b8414d195abf8346b48900661503b83be57
Cr-Commit-Position: refs/heads/master@{#302520}

Powered by Google App Engine
This is Rietveld 408576698