Skip to content

script: Fix the conversion behavior of RsaKeyGenParams - #47453

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
kkoyung:RsaKeyGenParams-enforcerange
Aug 23, 2026
Merged

TimvdLippe merged 1 commit into
servo:mainfrom
kkoyung:RsaKeyGenParams-enforcerange

Conversation

@kkoyung

@kkoyung kkoyung commented Aug 23, 2026

Copy link
Copy Markdown
Member

In WebCrypto API specification, the modulusLength member of the RsaKeyGenParams dictionary has the [EnforceRange] extended attribute. We mistakenly set the conversion behavior as ConversionBehavior::Default in our code. We change it back to ConversionBehavior::EnforceRange.

Spec: https://w3c.github.io/webcrypto/#RsaKeyGenParams-dictionary
Testing: Pass more WPT tests.

In WebCrypto API specification, the modulusLength member of the
RsaKeyGenParams dictionary has the [EnforceRange] extended attribute. We
mistakenly set the conversion behavior as `ConversionBehavior::Default`
in our code. We change it back to `ConversionBehavior::EnforceRange`.

Spec: https://w3c.github.io/webcrypto/#RsaKeyGenParams-dictionary
Testing: Pass more WPT tests.
Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
@kkoyung
kkoyung requested a review from gterzian as a code owner August 23, 2026 05:10
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 23, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 23, 2026
@TimvdLippe
TimvdLippe enabled auto-merge August 23, 2026 05:16
@TimvdLippe
TimvdLippe added this pull request to the merge queue Aug 23, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 23, 2026
Merged via the queue into servo:main with commit 85852ad Aug 23, 2026
36 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 23, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
In WebCrypto API specification, the modulusLength member of the
RsaKeyGenParams dictionary has the [EnforceRange] extended attribute. We
mistakenly set the conversion behavior as `ConversionBehavior::Default`
in our code. We change it back to `ConversionBehavior::EnforceRange`.

Spec: https://w3c.github.io/webcrypto/#RsaKeyGenParams-dictionary
Testing: Pass more WPT tests.

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
@kkoyung
kkoyung deleted the RsaKeyGenParams-enforcerange branch October 23, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants