2013-07-31 23:57:25 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
2015-02-02 04:49:01 -08:00
|
|
|
* https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#crypto-interface
|
2013-07-31 23:57:25 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
[NoInterfaceObject]
|
2015-02-02 04:49:01 -08:00
|
|
|
interface GlobalCrypto {
|
2015-02-02 06:36:04 -08:00
|
|
|
[Throws] readonly attribute Crypto crypto;
|
2013-07-31 23:57:25 -07:00
|
|
|
};
|
|
|
|
|
2015-02-02 04:49:01 -08:00
|
|
|
//[Exposed=(Window,Worker)]
|
2013-07-31 23:57:25 -07:00
|
|
|
interface Crypto {
|
2014-05-15 03:20:00 -07:00
|
|
|
[Pref="dom.webcrypto.enabled"]
|
|
|
|
readonly attribute SubtleCrypto subtle;
|
2015-02-02 04:49:01 -08:00
|
|
|
|
|
|
|
[Throws]
|
|
|
|
ArrayBufferView getRandomValues(ArrayBufferView array);
|
2013-07-31 23:57:25 -07:00
|
|
|
};
|