1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

LibWeb: Port SubtleCrypto to new String

The algorithm comparison in digest() is done using a StringView to avoid
complex error handling and promise rejection.
This commit is contained in:
Kenneth Myhra 2023-02-23 21:31:57 +01:00 committed by Linus Groh
parent a8cef1fa06
commit f783af05ed
3 changed files with 8 additions and 7 deletions

View file

@ -1,4 +1,4 @@
[SecureContext,Exposed=(Window,Worker)]
[SecureContext,Exposed=(Window,Worker), UseNewAKString]
interface SubtleCrypto {
// FIXME: Add support for AlgorithmIdentifier ("typedef (object or DOMString)")
Promise<any> digest(DOMString algorithm, BufferSource data);