ladybird/Libraries/LibWeb/Crypto/Crypto.idl

11 lines
302 B
Text

#import <Crypto/SubtleCrypto.idl>
// https://w3c.github.io/webcrypto/#crypto-interface
[Exposed=(Window,Worker)]
interface Crypto {
[SecureContext] readonly attribute SubtleCrypto subtle;
ArrayBufferView getRandomValues(ArrayBufferView array);
[SecureContext] DOMString randomUUID();
};