mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
Complete the ML-KEM support in WebCrypto API, with the implementation of the "encapsulate" and "decapsulate" operations of ML-KEM, as well as four new methods `encapsulateKey`, `encapsulateBits`, `decapsulateKey` and `decapsulateBits` of `SubtleCrypto`. Specification: https://wicg.github.io/webcrypto-modern-algos/#ml-kem-operations-encapsulate https://wicg.github.io/webcrypto-modern-algos/#ml-kem-operations-decapsulate https://wicg.github.io/webcrypto-modern-algos/#SubtleCrypto-method-encapsulateKey https://wicg.github.io/webcrypto-modern-algos/#SubtleCrypto-method-encapsulateBits https://wicg.github.io/webcrypto-modern-algos/#SubtleCrypto-method-decapsulateKey https://wicg.github.io/webcrypto-modern-algos/#SubtleCrypto-method-decapsulateBits Testing: Pass some WPT tests that were expected to fail. Fixes: Part of #41473 --------- Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>