Add [EnforceRange] instead of truncating lengths - #555
Conversation
closes w3c#429 Signed-off-by: Filip Skokan <panva.ip@gmail.com>
twiss
left a comment
There was a problem hiding this comment.
Thanks, and sorry for the long delay!
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #65091 Refs: w3c/webcrypto#555 Refs: WICG/webcrypto-modern-algos#65 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: James M Snell <jasnell@gmail.com>
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #65091 Refs: w3c/webcrypto#555 Refs: WICG/webcrypto-modern-algos#65 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Did anyone make corresponding WPT changes? I don't see them linked. |
|
No, thanks for the reminder. I've made some here: web-platform-tests/wpt#62086 I noticed while doing so that the So the only actually substantive change in this PR is to add |
|
|
The `[EnforceRange]` attribute of the `length` parameter of `deriveBits` was added in w3c/webcrypto#555. The `[EnforceRange]` attribute of the `length` and `modulusLength` properties of the `{Aes,Hmac,Rsa}KeyGenParams` dictionaries was already there. This change adds tests for both.
|
I've created browser issues here: |
The WebCrypto API specifications have updated to add [EnforceRange] to key length parameters in WebIDL, instead of truncating lengths. We update our implementation accordingly. Update in the Web Cryptography API spec: w3c/webcrypto#555 Update in the Modern Algorithms in the Web Cryptography API spec: WICG/webcrypto-modern-algos#65 Corresponding update in WPT: web-platform-tests/wpt#62086 Testing: Pass recently added WPT tests. Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
…ge] WebIDL attribute, a=testonly Automatic update from web-platform-tests [WebCryptoAPI] Add tests for [EnforceRange] WebIDL attribute (#62086) The `[EnforceRange]` attribute of the `length` parameter of `deriveBits` was added in w3c/webcrypto#555. The `[EnforceRange]` attribute of the `length` and `modulusLength` properties of the `{Aes,Hmac,Rsa}KeyGenParams` dictionaries was already there. This change adds tests for both. -- wpt-commits: b5af458bb2e817310239e66447c7055ce835f570 wpt-pr: 62086
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #65091 Refs: w3c/webcrypto#555 Refs: WICG/webcrypto-modern-algos#65 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: James M Snell <jasnell@gmail.com>
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #65091 Refs: w3c/webcrypto#555 Refs: WICG/webcrypto-modern-algos#65 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: James M Snell <jasnell@gmail.com>
closes #429
Preview | Diff