Skip to content

[WebCryptoAPI] Add tests for [EnforceRange] WebIDL attribute - #62086

Merged
twiss merged 1 commit into
web-platform-tests:masterfrom
twiss:webcrypto-test-enforcerange
Aug 20, 2026
Merged

[WebCryptoAPI] Add tests for [EnforceRange] WebIDL attribute#62086
twiss merged 1 commit into
web-platform-tests:masterfrom
twiss:webcrypto-test-enforcerange

Conversation

@twiss

@twiss twiss commented Aug 20, 2026

Copy link
Copy Markdown
Member

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-pr-bot

Copy link
Copy Markdown
Collaborator

There are no reviewers for this pull request besides its author. Please reach out on the chat room to get help with this. Thank you!

@twiss
twiss merged commit b5af458 into web-platform-tests:master Aug 20, 2026
28 checks passed
@twiss
twiss deleted the webcrypto-test-enforcerange branch August 20, 2026 15:54
pull Bot pushed a commit to AKJUS/servo that referenced this pull request Aug 23, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants