ladybird/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.idl
Kenneth Myhra f783af05ed LibWeb: Port SubtleCrypto to new String
The algorithm comparison in digest() is done using a StringView to avoid
complex error handling and promise rejection.
2023-02-24 19:24:39 +01:00

5 lines
233 B
Text

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