Bug 276394
Summary: | The subtleCrypto.deriveBits doesn't handle 'null' values correctly | ||
---|---|---|---|
Product: | WebKit | Reporter: | Javier Fernandez <jfernandez> |
Component: | WebCore Misc. | Assignee: | Javier Fernandez <jfernandez> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Javier Fernandez
There was a discussion in the issue #322 [1] about the lack of a proper way to handle null or omitted values for the deriveBits's length argument, given how it's currently defined in the IDL. There was a proposal in issue #329 [2] to define the 'length' argument as optional, and defaulting to 'null'.
The PR#345 [3] has been merged recently to fix this inconsistency in the Web Cryptography API specification, that lead to a few interoperability issues in the deriveBits operation of several algorithms (ECDH, HKDF, PBKDF2 and X25519).
[1] https://github.com/w3c/webcrypto/issues/322
[2] https://github.com/w3c/webcrypto/issues/329
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Javier Fernandez
Pull request: https://github.com/WebKit/WebKit/pull/30667
Radar WebKit Bug Importer
<rdar://problem/131878054>
EWS
Committed 281240@main (9586d3db576c): <https://commits.webkit.org/281240@main>
Reviewed commits have been landed. Closing PR #30667 and removing active labels.