mirror of
https://github.com/servo/servo
synced 2026-05-12 01:46:28 +02:00
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 <kingsley@kkoyung.dev>