Skip to content

script: Implement encrypt and decrypt operations of AES-OCB#41829

Merged
yezhizhen merged 1 commit intoservo:mainfrom
kkoyung:aes-ocb-encrypt-decrypt
Jan 11, 2026
Merged

script: Implement encrypt and decrypt operations of AES-OCB#41829
yezhizhen merged 1 commit intoservo:mainfrom
kkoyung:aes-ocb-encrypt-decrypt

Conversation

@kkoyung
Copy link
Copy Markdown
Member

@kkoyung kkoyung commented Jan 11, 2026

Finish on adding AES-OCB support to WebCrypto API.

This patch implements the encrypt and decrypt operations of AES-OCB, with the ocb3 crate. The "get key length" operation of AES-OCB is also implemented for internal use.

Specification:

Testing: Pass some WPT tests that were expected to fail.
Fixes: Part of #41762

Finish on adding AES-OCB support to WebCrypto API.

This patch implements the encrypt and decrypt operations of AES-OCB,
with the `ocb3` crate. The "get key length" operation of AES-OCB is also
implemented for internal use.

Specification:
- <https://wicg.github.io/webcrypto-modern-algos/#aes-ocb-operations-encrypt>
- <https://wicg.github.io/webcrypto-modern-algos/#aes-ocb-operations-decrypt>
- <https://wicg.github.io/webcrypto-modern-algos/#aes-ocb-operations-get-key-length>

Testing: Pass some WPT tests that were expected to fail.
Fixes: Part of 41762

Signed-off-by: Kingsley Yung <[email protected]>
@kkoyung kkoyung requested a review from gterzian as a code owner January 11, 2026 04:46
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 11, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jan 11, 2026
@yezhizhen yezhizhen added this pull request to the merge queue Jan 11, 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 Jan 11, 2026
Merged via the queue into servo:main with commit 8897496 Jan 11, 2026
32 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 Jan 11, 2026
@kkoyung kkoyung deleted the aes-ocb-encrypt-decrypt branch February 3, 2026 10:51
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