mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibWeb: Add the SubtleCrypto interface
Just some boilerplate code to get started :^) This adds both the SubtleCrypto constructor to the window object, as well as the crypto.subtle instance attribute.
This commit is contained in:
parent
ce6c515873
commit
615be9eb7c
8 changed files with 57 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
[Exposed=(Window,Worker)]
|
||||
interface Crypto {
|
||||
// TODO: [SecureContext] readonly attribute SubtleCrypto subtle;
|
||||
[SecureContext] readonly attribute SubtleCrypto subtle;
|
||||
|
||||
// FIXME: the argument and the return value should be of type ArrayBufferView
|
||||
any getRandomValues(any array);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue