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

Issue 1418113002: RTCPeerConnection.generateCertificate taking AlgorithmIdentifier and using WebCrypto (Closed)

Created:
5 years, 2 months ago by hbos_chromium
Modified:
5 years, 1 month ago
CC:
blink-reviews, chromium-reviews, hta - Chromium, tommyw+watchlist_chromium.org, torbjorng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RTCPeerConnection.generateCertificate taking AlgorithmIdentifier and using WebCrypto Latest WebRTC draft @ generateCertificate: http://w3c.github.io/webrtc-pc/#widl-RTCPeerConnection-generateCertificate-Promise-RTCCertificate--AlgorithmIdentifier-keygenAlgorithm Note the corrections that has since been made resolving WebRTC & WebCrypto spec discrepencies (https://github.com/w3c/webrtc-pc/issues/310, https://github.com/w3c/webrtc-pc/issues/322), the unstable github latest version looks slightly different: https://github.com/w3c/webrtc-pc/blob/master/webrtc.html (More readable version: http://htmlpreview.github.io/?https://github.com/w3c/webrtc-pc/blob/master/webrtc.html) This implementation is using WebCrypto and supports the AlgorithmIdentifier values required by the github version of the WebRTC spec: { name: "RSASSA-PKCS1-v1_5", modulusLength: 2048, publicExponent: new Uint8Array([1, 0, 1]), hash: "SHA-256" } { name: "ECDSA", namedCurve: "P-256" } NOPRESUBMIT=true BUG=544917 Committed: https://crrev.com/fcf6eb958079b14f71e4279fcd67a4c5e4099165 Cr-Commit-Position: refs/heads/master@{#357076}

Patch Set 1 : Hello, WebCrypto #

Total comments: 20

Patch Set 2 : Addressed comments #

Total comments: 4

Patch Set 3 : Addressed comments #

Total comments: 3

Patch Set 4 : Moved implementation to .cpp #

Total comments: 6

Patch Set 5 : Addressed comments #

Total comments: 3

Patch Set 6 : Addressed nit #

Patch Set 7 : Reupload #

Patch Set 8 : Rebase with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -70 lines) Patch
M components/webcrypto/algorithms/rsa.cc View 1 2 3 4 5 3 chunks +2 lines, -23 lines 0 comments Download
M content/renderer/media/rtc_certificate_generator.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/rtc_certificate_generator.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-generateCertificate.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-generateCertificate-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp View 1 2 3 4 5 6 7 3 chunks +46 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.idl View 1 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/exported/WebCryptoUtil.cpp View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/platform/WebCryptoUtil.h View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCCertificateGenerator.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 62 (22 generated)
hbos_chromium
Please take a look eroman and tommi.
5 years, 2 months ago (2015-10-22 14:57:33 UTC) #4
eroman
https://codereview.chromium.org/1418113002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1418113002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode130 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:130: // |exponentBytes| is of minimal typed array length (at ...
5 years, 2 months ago (2015-10-22 17:38:34 UTC) #6
hta - Chromium
Drive-by review. Suggesting some changes to the structure of error handling only (use early return). ...
5 years, 2 months ago (2015-10-23 06:55:00 UTC) #8
hbos_chromium
PTAL eroman, hta. Addressed comments and wondering about if ..ToUint32 should be placed where it ...
5 years, 2 months ago (2015-10-23 09:59:05 UTC) #9
eroman
https://codereview.chromium.org/1418113002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1418113002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode130 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:130: // |exponentBytes| is of minimal typed array length (at ...
5 years, 2 months ago (2015-10-23 19:13:04 UTC) #10
eroman
https://codereview.chromium.org/1418113002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1418113002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode130 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:130: // |exponentBytes| is of minimal typed array length (at ...
5 years, 2 months ago (2015-10-23 19:15:52 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418113002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418113002/60001
5 years, 1 month ago (2015-10-26 09:39:21 UTC) #13
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 1 month ago (2015-10-26 09:39:22 UTC) #15
hbos_chromium
PTAL eroman, tommi Addressed comments. Made the helper function not inline but global static function ...
5 years, 1 month ago (2015-10-26 13:21:32 UTC) #16
tommi (sloooow) - chröme
https://codereview.chromium.org/1418113002/diff/60001/third_party/WebKit/public/platform/WebCryptoUtil.h File third_party/WebKit/public/platform/WebCryptoUtil.h (right): https://codereview.chromium.org/1418113002/diff/60001/third_party/WebKit/public/platform/WebCryptoUtil.h#newcode14 third_party/WebKit/public/platform/WebCryptoUtil.h:14: static bool bigIntegerToUint(const WebVector<unsigned char>& bigInteger, unsigned& result) static ...
5 years, 1 month ago (2015-10-26 17:18:03 UTC) #17
eroman
https://codereview.chromium.org/1418113002/diff/60001/third_party/WebKit/public/platform/WebCryptoUtil.h File third_party/WebKit/public/platform/WebCryptoUtil.h (right): https://codereview.chromium.org/1418113002/diff/60001/third_party/WebKit/public/platform/WebCryptoUtil.h#newcode14 third_party/WebKit/public/platform/WebCryptoUtil.h:14: static bool bigIntegerToUint(const WebVector<unsigned char>& bigInteger, unsigned& result) On ...
5 years, 1 month ago (2015-10-26 18:02:10 UTC) #18
hbos_chromium
PTAL eroman, tommi. I moved it to .cpp. https://codereview.chromium.org/1418113002/diff/60001/third_party/WebKit/public/platform/WebCryptoUtil.h File third_party/WebKit/public/platform/WebCryptoUtil.h (right): https://codereview.chromium.org/1418113002/diff/60001/third_party/WebKit/public/platform/WebCryptoUtil.h#newcode14 third_party/WebKit/public/platform/WebCryptoUtil.h:14: static ...
5 years, 1 month ago (2015-10-27 08:50:21 UTC) #19
eroman
https://codereview.chromium.org/1418113002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1418113002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode505 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:505: return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, unsupportedParamsString)); Is this the error that ...
5 years, 1 month ago (2015-10-27 18:24:11 UTC) #20
hbos_chromium
PTAL tommi, eroman https://codereview.chromium.org/1418113002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1418113002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode505 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:505: return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, unsupportedParamsString)); On 2015/10/27 ...
5 years, 1 month ago (2015-10-28 10:35:05 UTC) #21
eroman
lgtm https://codereview.chromium.org/1418113002/diff/100001/components/webcrypto/algorithms/rsa.cc File components/webcrypto/algorithms/rsa.cc (right): https://codereview.chromium.org/1418113002/diff/100001/components/webcrypto/algorithms/rsa.cc#newcode282 components/webcrypto/algorithms/rsa.cc:282: if (!blink::bigIntegerToUint(params->publicExponent(), public_exponent)) { nit: remove the curly ...
5 years, 1 month ago (2015-10-28 19:12:41 UTC) #22
hbos_chromium
PTAL tommi
5 years, 1 month ago (2015-10-29 08:56:32 UTC) #23
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/1418113002/diff/100001/components/webcrypto/algorithms/rsa.cc File components/webcrypto/algorithms/rsa.cc (right): https://codereview.chromium.org/1418113002/diff/100001/components/webcrypto/algorithms/rsa.cc#newcode282 components/webcrypto/algorithms/rsa.cc:282: if (!blink::bigIntegerToUint(params->publicExponent(), public_exponent)) { On 2015/10/28 19:12:41, eroman ...
5 years, 1 month ago (2015-10-29 09:01:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418113002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418113002/120001
5 years, 1 month ago (2015-10-29 09:18:10 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/113821)
5 years, 1 month ago (2015-10-29 09:26:01 UTC) #29
hbos_chromium
Addressed nit after lgtm and presubmit fails. Do you need to lgtm again? https://codereview.chromium.org/1418113002/diff/100001/components/webcrypto/algorithms/rsa.cc File ...
5 years, 1 month ago (2015-10-29 09:26:39 UTC) #30
hbos_chromium
Oh, I'm missing an LGTM for third_party/WebKit/Source/platform third_party/WebKit/public jochen, can you take a look (or ...
5 years, 1 month ago (2015-10-29 09:34:29 UTC) #32
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-10-29 14:25:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418113002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418113002/120001
5 years, 1 month ago (2015-10-29 14:35:59 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/113882)
5 years, 1 month ago (2015-10-29 14:43:42 UTC) #37
hbos_chromium
On 2015/10/29 14:43:42, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-10-29 14:47:09 UTC) #38
hbos_chromium
On 2015/10/29 14:47:09, hbos_chromium wrote: > On 2015/10/29 14:43:42, commit-bot: I haz the power wrote: ...
5 years, 1 month ago (2015-10-29 14:49:41 UTC) #39
tommi (sloooow) - chröme
On 2015/10/29 14:49:41, hbos_chromium wrote: > On 2015/10/29 14:47:09, hbos_chromium wrote: > > On 2015/10/29 ...
5 years, 1 month ago (2015-10-29 15:36:13 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418113002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418113002/120001
5 years, 1 month ago (2015-10-29 15:39:44 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/113908)
5 years, 1 month ago (2015-10-29 15:47:57 UTC) #44
tommi (sloooow) - chröme
On 2015/10/29 15:47:57, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-10-29 15:51:51 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418113002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418113002/140001
5 years, 1 month ago (2015-10-29 15:53:34 UTC) #47
tommi (sloooow) - chröme
Think I found at least one of the problems: DEBUG subprocess2( 215): git apply --index ...
5 years, 1 month ago (2015-10-29 16:00:23 UTC) #48
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/113914)
5 years, 1 month ago (2015-10-29 16:03:33 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418113002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418113002/160001
5 years, 1 month ago (2015-10-29 16:07:30 UTC) #53
tommi (sloooow) - chröme
Looks like presubmit is still failing and it looks wrong to me. Could there be ...
5 years, 1 month ago (2015-10-29 16:18:23 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/113917)
5 years, 1 month ago (2015-10-29 16:19:03 UTC) #56
hbos_chromium
On 2015/10/29 16:18:23, tommi wrote: > Looks like presubmit is still failing and it looks ...
5 years, 1 month ago (2015-10-30 08:21:06 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418113002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418113002/160001
5 years, 1 month ago (2015-10-30 08:22:25 UTC) #60
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 1 month ago (2015-10-30 10:38:45 UTC) #61
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 10:39:32 UTC) #62
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/fcf6eb958079b14f71e4279fcd67a4c5e4099165
Cr-Commit-Position: refs/heads/master@{#357076}

Powered by Google App Engine
This is Rietveld 408576698