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

Issue 1218753002: Add DER parsing of AlgorithmId for signatures. (Closed)

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

Description

Add DER parsing of AlgorithmId for signatures. This initial implementation supports: * sha-1WithRSAEncryption * sha256WithRSAEncryption * sha384WithRSAEncryption * sha512WithRSAEncryption * ecdsa-with-SHA1 * ecdsa-with-SHA256 * ecdsa-with-SHA38 * ecdsa-with-SHA512 BUG=410574 Committed: https://crrev.com/68de6fee236e99393cfd462b0698cebb50c55d9a Cr-Commit-Position: refs/heads/master@{#339088}

Patch Set 1 #

Patch Set 2 : adjust some comments #

Patch Set 3 : remove clang-format off and just accept its formatting #

Total comments: 11

Patch Set 4 : address comments #

Patch Set 5 : Expand a comment some more... #

Total comments: 4

Patch Set 6 : Add framework for RSASSA-PSS, annotate test data, and some refactors #

Patch Set 7 : Pass around der::Input rather than der::Parser to helpers #

Patch Set 8 : fixup comments #

Patch Set 9 : formatting tweaks to unnittests #

Patch Set 10 : remove changes to parser.cc #

Patch Set 11 : rebase #

Patch Set 12 : dont use der::parser::readbytesleft() #

Patch Set 13 : remove parameter types for non-rsapss (make digest property of SignatureAlgorithm) #

Patch Set 14 : fix some comments #

Patch Set 15 : remove a questionable comment #

Patch Set 16 : rebase #

Patch Set 17 : Rename Pkcs1_5 --> Pkcs1 for less ugliness #

Patch Set 18 : rebase #

Total comments: 22

Patch Set 19 : address initial comments #

Patch Set 20 : rebase #

Patch Set 21 : Use factory methods (scoped_ptr) rather than Assign + initial invalid state #

Patch Set 22 : add unittest helper #

Patch Set 23 : change signature of CreateFromDer() to return scoped_ptr rather than bool #

Patch Set 24 : Better documentation, and reference RFC 5912 when possible #

Total comments: 4

Patch Set 25 : de-virtualize Equals() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1052 lines, -0 lines) Patch
A net/cert/internal/signature_algorithm.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +114 lines, -0 lines 0 comments Download
A net/cert/internal/signature_algorithm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +364 lines, -0 lines 0 comments Download
A net/cert/internal/signature_algorithm_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +571 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
eroman
5 years, 5 months ago (2015-06-29 01:54:04 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm.cc#newcode85 net/cert/internal/signature_algorithm.cc:85: WARN_UNUSED_RESULT bool AssignFromDerEmptyParams( end of line, not beginning. https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm.h ...
5 years, 5 months ago (2015-06-29 14:45:25 UTC) #3
eroman
https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm.cc#newcode85 net/cert/internal/signature_algorithm.cc:85: WARN_UNUSED_RESULT bool AssignFromDerEmptyParams( On 2015/06/29 14:45:24, Ryan Sleevi (slow ...
5 years, 5 months ago (2015-06-29 15:19:00 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm.cc#newcode85 net/cert/internal/signature_algorithm.cc:85: WARN_UNUSED_RESULT bool AssignFromDerEmptyParams( On 2015/06/29 15:19:00, eroman wrote: > ...
5 years, 5 months ago (2015-06-29 16:06:57 UTC) #5
eroman
Left the W_U_R in, because I have a thing for them :)
5 years, 5 months ago (2015-06-29 16:17:47 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm_unittest.cc File net/cert/internal/signature_algorithm_unittest.cc (right): https://codereview.chromium.org/1218753002/diff/40001/net/cert/internal/signature_algorithm_unittest.cc#newcode49 net/cert/internal/signature_algorithm_unittest.cc:49: 0x05}; On 2015/06/29 15:19:00, eroman wrote: > My slight ...
5 years, 5 months ago (2015-06-29 16:36:29 UTC) #7
eroman
https://codereview.chromium.org/1218753002/diff/80001/net/cert/internal/signature_algorithm.h File net/cert/internal/signature_algorithm.h (right): https://codereview.chromium.org/1218753002/diff/80001/net/cert/internal/signature_algorithm.h#newcode31 net/cert/internal/signature_algorithm.h:31: struct NET_EXPORT SignatureAlgorithm { On 2015/06/29 16:36:29, Ryan Sleevi ...
5 years, 5 months ago (2015-06-29 17:05:06 UTC) #8
eroman
PTAL - I generalized SignatureAlgorithm to support RSASSA-PSS and its parameters. I am keeping the ...
5 years, 5 months ago (2015-06-30 15:53:15 UTC) #9
Ryan Sleevi
I'm reasonably OK with this, but I wanted to pass through David for a second ...
5 years, 5 months ago (2015-07-07 13:55:15 UTC) #11
eroman
https://codereview.chromium.org/1218753002/diff/200002/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1218753002/diff/200002/net/cert/internal/signature_algorithm.cc#newcode113 net/cert/internal/signature_algorithm.cc:113: return !algorithm_identifier_parser.HasMore(); On 2015/07/07 13:55:15, Ryan Sleevi (slow through ...
5 years, 5 months ago (2015-07-08 01:09:35 UTC) #12
Ryan Sleevi
https://codereview.chromium.org/1218753002/diff/200002/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1218753002/diff/200002/net/cert/internal/signature_algorithm.cc#newcode113 net/cert/internal/signature_algorithm.cc:113: return !algorithm_identifier_parser.HasMore(); On 2015/07/08 01:09:34, eroman wrote: > For ...
5 years, 5 months ago (2015-07-08 11:44:01 UTC) #13
Ryan Sleevi
https://codereview.chromium.org/1218753002/diff/200002/net/cert/internal/signature_algorithm.h File net/cert/internal/signature_algorithm.h (right): https://codereview.chromium.org/1218753002/diff/200002/net/cert/internal/signature_algorithm.h#newcode73 net/cert/internal/signature_algorithm.h:73: SignatureAlgorithm(); On 2015/07/08 01:09:34, eroman wrote: > On 2015/07/07 ...
5 years, 5 months ago (2015-07-08 11:49:05 UTC) #14
eroman
https://codereview.chromium.org/1218753002/diff/200002/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1218753002/diff/200002/net/cert/internal/signature_algorithm.cc#newcode113 net/cert/internal/signature_algorithm.cc:113: return !algorithm_identifier_parser.HasMore(); On 2015/07/08 11:44:01, Ryan Sleevi (slow through ...
5 years, 5 months ago (2015-07-14 20:31:39 UTC) #15
Ryan Sleevi
LGTM % nits & request for analysis https://codereview.chromium.org/1218753002/diff/450001/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1218753002/diff/450001/net/cert/internal/signature_algorithm.cc#newcode191 net/cert/internal/signature_algorithm.cc:191: if (!IsNull(params)) ...
5 years, 5 months ago (2015-07-16 03:46:37 UTC) #16
eroman
https://codereview.chromium.org/1218753002/diff/450001/net/cert/internal/signature_algorithm.cc File net/cert/internal/signature_algorithm.cc (right): https://codereview.chromium.org/1218753002/diff/450001/net/cert/internal/signature_algorithm.cc#newcode191 net/cert/internal/signature_algorithm.cc:191: if (!IsNull(params)) On 2015/07/16 03:46:37, Ryan Sleevi (slow through ...
5 years, 5 months ago (2015-07-16 05:23:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218753002/470001
5 years, 5 months ago (2015-07-16 17:35:53 UTC) #20
commit-bot: I haz the power
Committed patchset #25 (id:470001)
5 years, 5 months ago (2015-07-16 18:48:12 UTC) #21
commit-bot: I haz the power
5 years, 5 months ago (2015-07-16 18:50:30 UTC) #22
Message was sent while issue was closed.
Patchset 25 (id:??) landed as
https://crrev.com/68de6fee236e99393cfd462b0698cebb50c55d9a
Cr-Commit-Position: refs/heads/master@{#339088}

Powered by Google App Engine
This is Rietveld 408576698