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 560583002: Generalize crypto::SignatureCreator to allow choice of hash function, so as to support SHA256 (not … (Closed)

Created:
6 years, 3 months ago by dougsteed
Modified:
6 years, 3 months ago
CC:
chromium-reviews, lcwu1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Generalize crypto::SignatureCreator to allow choice of hash function, so as to support SHA256 (not just SHA1). BUG=412531 R=rsleevi@chromium.org,davidben@chromium.org TBR=pfeldman@chromium.org Committed: https://crrev.com/0cf460ec9f9b56c22c5101ff599e7e842c541089 Cr-Commit-Position: refs/heads/master@{#295747}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Updated comment as suggested. #

Patch Set 3 : Remove unnecessary backwards compatibility and update call sites #

Total comments: 7

Patch Set 4 : Rebase, fix some lint issues, and a shameful missing ")" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -19 lines) Patch
M chrome/browser/devtools/device/usb/android_rsa.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_creator.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/ownership/owner_settings_service.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/policy_builder.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M crypto/signature_creator.h View 1 2 1 chunk +13 lines, -4 lines 0 comments Download
M crypto/signature_creator_nss.cc View 1 2 4 chunks +29 lines, -4 lines 0 comments Download
M crypto/signature_creator_openssl.cc View 1 2 3 2 chunks +35 lines, -4 lines 0 comments Download
M crypto/signature_creator_unittest.cc View 1 2 5 chunks +48 lines, -1 line 0 comments Download
M remoting/base/rsa_key_pair.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (6 generated)
dougsteed
6 years, 3 months ago (2014-09-09 21:39:15 UTC) #1
davidben
lgtm with two minor nits. Leaving Ryan to OWNERS stamp and in case he has ...
6 years, 3 months ago (2014-09-10 22:03:54 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/560583002/diff/1/crypto/signature_creator.h File crypto/signature_creator.h (right): https://codereview.chromium.org/560583002/diff/1/crypto/signature_creator.h#newcode27 crypto/signature_creator.h:27: // Currently can only sign data using SHA-1 or ...
6 years, 3 months ago (2014-09-10 22:09:30 UTC) #3
dougsteed
Please take a look at my responses to the comments. About to upload a new ...
6 years, 3 months ago (2014-09-12 00:14:37 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/560583002/diff/1/crypto/signature_creator.h File crypto/signature_creator.h (right): https://codereview.chromium.org/560583002/diff/1/crypto/signature_creator.h#newcode40 crypto/signature_creator.h:40: static SignatureCreator* Create(RSAPrivateKey* key); On 2014/09/12 00:14:37, dougsteed wrote: ...
6 years, 3 months ago (2014-09-12 00:19:02 UTC) #5
dougsteed
On 2014/09/12 00:19:02, Ryan Sleevi wrote: > https://codereview.chromium.org/560583002/diff/1/crypto/signature_creator.h > File crypto/signature_creator.h (right): > > https://codereview.chromium.org/560583002/diff/1/crypto/signature_creator.h#newcode40 ...
6 years, 3 months ago (2014-09-12 21:13:07 UTC) #6
Ryan Sleevi
Thanks Doug! LGTM
6 years, 3 months ago (2014-09-12 21:17:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/560583002/40001
6 years, 3 months ago (2014-09-12 21:31:31 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/10734)
6 years, 3 months ago (2014-09-12 21:49:21 UTC) #11
dougsteed
On 2014/09/12 21:49:21, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-09-12 22:24:12 UTC) #13
Yoyo Zhou
extensions LGTM
6 years, 3 months ago (2014-09-12 23:17:51 UTC) #14
Wez
remoting/ LGTM
6 years, 3 months ago (2014-09-13 21:37:25 UTC) #15
dougsteed
On 2014/09/12 22:24:12, dougsteed wrote: > On 2014/09/12 21:49:21, I haz the power (commit-bot) wrote: ...
6 years, 3 months ago (2014-09-17 16:24:16 UTC) #17
ygorshenin1
ygorshenin - c/b/chromeos/ownership/* lgtm, but you need to rebase your CL since owner_settings_service.{cc|h} were moved ...
6 years, 3 months ago (2014-09-17 18:26:05 UTC) #18
alokp
https://codereview.chromium.org/560583002/diff/40001/crypto/signature_creator_openssl.cc File crypto/signature_creator_openssl.cc (right): https://codereview.chromium.org/560583002/diff/40001/crypto/signature_creator_openssl.cc#newcode65 crypto/signature_creator_openssl.cc:65: ScopedRSA rsa_key (EVP_PKEY_get1_RSA(key->key())); lint error: extra space https://codereview.chromium.org/560583002/diff/40001/crypto/signature_creator_unittest.cc File ...
6 years, 3 months ago (2014-09-17 23:21:26 UTC) #20
dougsteed
https://codereview.chromium.org/560583002/diff/40001/chrome/browser/chromeos/ownership/owner_settings_service.cc File chrome/browser/chromeos/ownership/owner_settings_service.cc (right): https://codereview.chromium.org/560583002/diff/40001/chrome/browser/chromeos/ownership/owner_settings_service.cc#newcode98 chrome/browser/chromeos/ownership/owner_settings_service.cc:98: crypto::SignatureCreator::SHA1); Noticed the missing ")" myself. Will be fixed ...
6 years, 3 months ago (2014-09-18 18:04:40 UTC) #21
alokp
lgtm. You may already know this - 'git cl format' is an amazing tool to ...
6 years, 3 months ago (2014-09-18 18:21:29 UTC) #22
Andrew T Wilson (Slow)
policy lgtm
6 years, 3 months ago (2014-09-19 15:51:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/560583002/60001
6 years, 3 months ago (2014-09-19 16:17:19 UTC) #25
pfeldman
devtools lgtm
6 years, 3 months ago (2014-09-19 16:32:14 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001) as fb6fe2937547f2f3e210784c319c5f8004745fae
6 years, 3 months ago (2014-09-19 18:46:17 UTC) #27
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 18:46:59 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0cf460ec9f9b56c22c5101ff599e7e842c541089
Cr-Commit-Position: refs/heads/master@{#295747}

Powered by Google App Engine
This is Rietveld 408576698