Files
servo/components/script
Kingsley Yung c394c6e65f script: Use SupportedAlgorithm in Subtlecrypto.wrapKey (#41587)
With the new implementation of `supportedAlgorithms` of WebCrypto from
#41563, we can properly check whether a cryptographic algorithm supports
export key operation, based on the algorithm registration.

This refactoring makes our implementation of `Subtlecrypto.wrapKey`
method to use this functionality to avoid hard-coding a list of
unsupported algorithms.

Testing: Refactoring. Existing tests suffice.

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
2025-12-30 12:36:43 +00:00
..
2025-10-02 07:51:19 +00:00