Skip to content

Truly independent web browser

391 B
Raw Blame
// https://w3c.github.io/webcrypto/#crypto-interface
partial interface mixin WindowOrWorkerGlobalScope {
    [SameObject] readonly attribute Crypto crypto;
};

[Exposed=(Window,Worker),ImplementedIn=Rust]
interface Crypto {
    [SecureContext] readonly attribute SubtleCrypto subtle;
    ArrayBufferView getRandomValues(ArrayBufferView array);
    [SecureContext] DOMString randomUUID();
};