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

Issue 331173002: enterprise.platformKeys: Respect the 'hash' argument of generateKey. (Closed)

Created:
6 years, 6 months ago by pneubeck (no reviews)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

enterprise.platformKeys: Respect the 'hash' argument of generateKey. Before, the hash argument was simply ignored and defaulted to SHA-1. Instead it accepts now all values specified by WebCrypto, i.e. SHA-{1,256,384,512}. BUG=385085 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278293

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Addressed comments. #

Total comments: 2

Patch Set 3 : Rebased. #

Patch Set 4 : Rebased. #

Messages

Total messages: 12 (0 generated)
pneubeck (no reviews)
@Eric, please take a look for WebCrypto compatibility. @Benjamin, I need your rubber stamp for ...
6 years, 6 months ago (2014-06-16 14:18:12 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/331173002/diff/20001/chrome/browser/chromeos/platform_keys/platform_keys_nss.cc File chrome/browser/chromeos/platform_keys/platform_keys_nss.cc (right): https://codereview.chromium.org/331173002/diff/20001/chrome/browser/chromeos/platform_keys/platform_keys_nss.cc#newcode343 chrome/browser/chromeos/platform_keys/platform_keys_nss.cc:343: sign_alg_tag = SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION; can you just pass in this ...
6 years, 6 months ago (2014-06-16 17:05:32 UTC) #2
pneubeck (no reviews)
https://codereview.chromium.org/331173002/diff/20001/chrome/browser/chromeos/platform_keys/platform_keys_nss.cc File chrome/browser/chromeos/platform_keys/platform_keys_nss.cc (right): https://codereview.chromium.org/331173002/diff/20001/chrome/browser/chromeos/platform_keys/platform_keys_nss.cc#newcode343 chrome/browser/chromeos/platform_keys/platform_keys_nss.cc:343: sign_alg_tag = SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION; On 2014/06/16 17:05:31, kalman wrote: > ...
6 years, 6 months ago (2014-06-17 09:12:17 UTC) #3
not at google - send to devlin
The code to change is here: https://code.google.com/p/chromium/codesearch#chromium/src/tools/json_schema_compiler/cpp_type_generator.py&sq=package:chromium&l=68 I think it's a 1-line change. https://codereview.chromium.org/331173002/diff/20001/chrome/browser/chromeos/platform_keys/platform_keys_nss.cc File ...
6 years, 6 months ago (2014-06-17 18:18:48 UTC) #4
eroman
LGTM after responding to https://codereview.chromium.org/331173002/diff/80001/chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js#newcode146 https://codereview.chromium.org/331173002/diff/20001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc File chrome/renderer/extensions/enterprise_platform_keys_natives.cc (right): https://codereview.chromium.org/331173002/diff/20001/chrome/renderer/extensions/enterprise_platform_keys_natives.cc#newcode66 chrome/renderer/extensions/enterprise_platform_keys_natives.cc:66: hash_dict->SetStringWithoutPathExpansion("name", hash_info->name); isn't there ...
6 years, 6 months ago (2014-06-17 18:25:22 UTC) #5
pneubeck (no reviews)
https://codereview.chromium.org/331173002/diff/80001/chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js File chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js (right): https://codereview.chromium.org/331173002/diff/80001/chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js#newcode146 chrome/renderer/resources/extensions/enterprise_platform_keys/subtle_crypto.js:146: key.algorithm.hash.name, On 2014/06/17 18:25:22, eroman wrote: > Are users ...
6 years, 6 months ago (2014-06-17 18:31:31 UTC) #6
not at google - send to devlin
lgtm
6 years, 6 months ago (2014-06-17 19:58:52 UTC) #7
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-18 18:01:30 UTC) #8
pneubeck (no reviews)
The CQ bit was unchecked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-18 18:01:37 UTC) #9
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 6 months ago (2014-06-18 22:38:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/331173002/140001
6 years, 6 months ago (2014-06-18 22:39:36 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 07:00:59 UTC) #12
Message was sent while issue was closed.
Change committed as 278293

Powered by Google App Engine
This is Rietveld 408576698