mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 04:04:59 +00:00

The algorithm comparison in digest() is done using a StringView to avoid complex error handling and promise rejection.
5 lines
233 B
Text
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);
|
|
};
|