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

Issue 10910226: crypto: change ECSignatureCreator defaults to match SPDY. (Closed)

Created:
8 years, 3 months ago by agl
Modified:
8 years, 3 months ago
CC:
chromium-reviews, Ryan Hamilton
Visibility:
Public.

Description

crypto: add DecodeSignature and use SHA-256 with ECDSA. This changes ECSignatureCreator to use the hash function that SPDY expects (SHA-256). There are no other users of ECSignatureCreator in the tree so I'm going to defer making these choices parameters until there's a benefit to be had. It also adds DecodeSignature to convert from ASN.1 signatures to the `raw' form that SPDY needs. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157551

Patch Set 1 #

Patch Set 2 : typo fix #

Total comments: 4

Patch Set 3 : Address rsleevi's comments #

Total comments: 9

Patch Set 4 : Address wtc's comments #

Total comments: 4

Patch Set 5 : ... #

Patch Set 6 : ... #

Patch Set 7 : ... #

Patch Set 8 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -13 lines) Patch
M crypto/ec_signature_creator.h View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M crypto/ec_signature_creator_impl.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M crypto/ec_signature_creator_nss.cc View 1 2 3 4 5 6 5 chunks +23 lines, -3 lines 0 comments Download
M crypto/ec_signature_creator_openssl.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M crypto/ec_signature_creator_unittest.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -7 lines 0 comments Download
M net/spdy/spdy_credential_builder.cc View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M net/spdy/spdy_test_util_spdy3.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
agl
8 years, 3 months ago (2012-09-12 15:39:59 UTC) #1
Ryan Hamilton
I guess this explains why the CREDENTIAL frames were not being verified by the GFE? ...
8 years, 3 months ago (2012-09-12 16:14:18 UTC) #2
agl
On 2012/09/12 16:14:18, Ryan Hamilton wrote: > I guess this explains why the CREDENTIAL frames ...
8 years, 3 months ago (2012-09-12 16:23:56 UTC) #3
Ryan Sleevi
Is there any particular reason that TLS Channel IDs chose to go with "raw" ECDSA ...
8 years, 3 months ago (2012-09-12 17:55:22 UTC) #4
agl
TLS uses 'raw' ECC keys, but encoded signatures. ChannelIDs are at least self-consistent :) But ...
8 years, 3 months ago (2012-09-12 18:51:48 UTC) #5
wtc
Review comments on patch set 3: The most serious problem is the different formats of ...
8 years, 3 months ago (2012-09-12 19:47:45 UTC) #6
agl
https://chromiumcodereview.appspot.com/10910226/diff/10001/crypto/ec_signature_creator.h File crypto/ec_signature_creator.h (right): https://chromiumcodereview.appspot.com/10910226/diff/10001/crypto/ec_signature_creator.h#newcode45 crypto/ec_signature_creator.h:45: // |signature| as a pair of big-endian field elements. ...
8 years, 3 months ago (2012-09-12 21:41:46 UTC) #7
wtc
Patch set 4 LGTM. It seems that DecodeSignature should be a member function of ECPrivateKey, ...
8 years, 3 months ago (2012-09-12 22:06:27 UTC) #8
agl
(Will wait to land until I can bring up a test server and do and ...
8 years, 3 months ago (2012-09-13 20:17:59 UTC) #9
wtc
Patch set 5 LGTM!
8 years, 3 months ago (2012-09-14 19:37:16 UTC) #10
wtc
agl,rsleevi: ideally DecodeSignature should be a free function. The only state DecodeSignature needs from ECSignatureCreator ...
8 years, 3 months ago (2012-09-14 19:49:42 UTC) #11
agl
On Fri, Sep 14, 2012 at 3:49 PM, <wtc@chromium.org> wrote: > agl,rsleevi: ideally DecodeSignature should ...
8 years, 3 months ago (2012-09-14 19:55:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agl@chromium.org/10910226/10003
8 years, 3 months ago (2012-09-18 17:41:10 UTC) #13
commit-bot: I haz the power
8 years, 3 months ago (2012-09-18 21:34:05 UTC) #14
Retried try job too often for step(s) browser_tests

Powered by Google App Engine
This is Rietveld 408576698