mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
This patch changes the methods of `SubtleCrypto` to use the new `&mut JSContext` and `&mut CurrentRealm`, Those methods are `Encrypt`, `Decrypt`, `Sign`, `Verify`, `GenerateKey`, `DeriveKey`, `DeriveBits`, `Digest`, `ImportKey`, `ExportKey`, `WrapKey`, `UnwrapKey`, `EncapsulateKey`, `EncapsulateBits`, `DecapsulateKey`, `DecapsulateBits`. The change also propagate to the all internal methods within the `subtlecrypto` module. Testing: Refactoring. Existing tests suffice. Fixes: Part of #42638 --------- Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>