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

Issue 1259313002: Add some policy controls for VerifySignedData(). (Closed)

Created:
5 years, 4 months ago by eroman
Modified:
5 years, 4 months ago
Reviewers:
Ryan Sleevi, davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@add_python
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add some policy controls for VerifySignedData(). This allows controlling: * What RSA key sizes are accepted * What digest algorithms are accepted * What ellipitc curves are accepted This policy is expressed through a separate interface. I expect this interface will morph into something more generic for certificate verifying. BUG=410574 Committed: https://crrev.com/5d7c3b4c9b4c7e5f40be3b125f37fd8f6b2f9548 Cr-Commit-Position: refs/heads/master@{#342292}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address Ryan's comments #

Total comments: 2

Patch Set 3 : fix scoped ptr awefulnes #

Patch Set 4 : delete an unnecessary comment #

Total comments: 7

Patch Set 5 : rebase onto master #

Patch Set 6 : Address David's feedback #

Total comments: 6

Patch Set 7 : Address more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -33 lines) Patch
A net/cert/internal/signature_policy.h View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A net/cert/internal/signature_policy.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M net/cert/internal/verify_signed_data.h View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M net/cert/internal/verify_signed_data.cc View 1 2 3 4 5 6 chunks +27 lines, -26 lines 0 comments Download
M net/cert/internal/verify_signed_data_unittest.cc View 1 2 3 4 5 6 5 chunks +109 lines, -6 lines 0 comments Download
A net/data/verify_signed_data_unittest/rsa2048-pkcs1-sha512.pem View 1 chunk +93 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
eroman
5 years, 4 months ago (2015-07-28 17:04:30 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/1259313002/diff/1/net/cert/internal/verification_policy.h File net/cert/internal/verification_policy.h (right): https://codereview.chromium.org/1259313002/diff/1/net/cert/internal/verification_policy.h#newcode17 net/cert/internal/verification_policy.h:17: class NET_EXPORT VerificationPolicy { Naming wise, this seems like ...
5 years, 4 months ago (2015-07-28 21:14:53 UTC) #3
eroman
https://codereview.chromium.org/1259313002/diff/1/net/cert/internal/verification_policy.h File net/cert/internal/verification_policy.h (right): https://codereview.chromium.org/1259313002/diff/1/net/cert/internal/verification_policy.h#newcode17 net/cert/internal/verification_policy.h:17: class NET_EXPORT VerificationPolicy { On 2015/07/28 21:14:53, Ryan Sleevi ...
5 years, 4 months ago (2015-07-29 02:44:43 UTC) #4
Ryan Sleevi
LGTM, but David, would you mind spot-checking to make sure I didn't miss anything? https://codereview.chromium.org/1259313002/diff/20001/net/cert/internal/verify_signed_data.cc ...
5 years, 4 months ago (2015-08-01 01:42:50 UTC) #5
eroman
https://codereview.chromium.org/1259313002/diff/20001/net/cert/internal/verify_signed_data.cc File net/cert/internal/verify_signed_data.cc (right): https://codereview.chromium.org/1259313002/diff/20001/net/cert/internal/verify_signed_data.cc#newcode174 net/cert/internal/verify_signed_data.cc:174: unsigned int modulus_length_bits = BN_num_bits(rsa.get()->n); On 2015/08/01 01:42:50, Ryan ...
5 years, 4 months ago (2015-08-01 02:20:45 UTC) #6
davidben
https://codereview.chromium.org/1259313002/diff/60001/net/cert/internal/signature_policy.cc File net/cert/internal/signature_policy.cc (right): https://codereview.chromium.org/1259313002/diff/60001/net/cert/internal/signature_policy.cc#newcode10 net/cert/internal/signature_policy.cc:10: #include <openssl/obj_mac.h> Better to include obj.h I think. obj_mac.h ...
5 years, 4 months ago (2015-08-03 18:52:49 UTC) #7
eroman
https://codereview.chromium.org/1259313002/diff/60001/net/cert/internal/signature_policy.cc File net/cert/internal/signature_policy.cc (right): https://codereview.chromium.org/1259313002/diff/60001/net/cert/internal/signature_policy.cc#newcode10 net/cert/internal/signature_policy.cc:10: #include <openssl/obj_mac.h> On 2015/08/03 18:52:48, David Benjamin wrote: > ...
5 years, 4 months ago (2015-08-06 21:15:38 UTC) #8
davidben
lgtm https://codereview.chromium.org/1259313002/diff/90001/net/cert/internal/verify_signed_data_unittest.cc File net/cert/internal/verify_signed_data_unittest.cc (right): https://codereview.chromium.org/1259313002/diff/90001/net/cert/internal/verify_signed_data_unittest.cc#newcode21 net/cert/internal/verify_signed_data_unittest.cc:21: #include <openssl/obj_mac.h> (This one also should be obj.h.) ...
5 years, 4 months ago (2015-08-06 21:32:04 UTC) #9
eroman
https://codereview.chromium.org/1259313002/diff/90001/net/cert/internal/verify_signed_data_unittest.cc File net/cert/internal/verify_signed_data_unittest.cc (right): https://codereview.chromium.org/1259313002/diff/90001/net/cert/internal/verify_signed_data_unittest.cc#newcode21 net/cert/internal/verify_signed_data_unittest.cc:21: #include <openssl/obj_mac.h> On 2015/08/06 21:32:04, David Benjamin wrote: > ...
5 years, 4 months ago (2015-08-06 22:22:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259313002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259313002/110001
5 years, 4 months ago (2015-08-07 00:29:23 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/96243)
5 years, 4 months ago (2015-08-07 02:06:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259313002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259313002/110001
5 years, 4 months ago (2015-08-07 03:26:54 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 4 months ago (2015-08-07 05:20:28 UTC) #18
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 05:21:20 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5d7c3b4c9b4c7e5f40be3b125f37fd8f6b2f9548
Cr-Commit-Position: refs/heads/master@{#342292}

Powered by Google App Engine
This is Rietveld 408576698