2013-08-01 06:57:25 +00: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 12:49:01 +00:00
|
|
|
* https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#crypto-interface
|
2013-08-01 06:57:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
[NoInterfaceObject]
|
2015-02-02 12:49:01 +00:00
|
|
|
interface GlobalCrypto {
|
2015-02-02 14:36:04 +00:00
|
|
|
[Throws] readonly attribute Crypto crypto;
|
2013-08-01 06:57:25 +00:00
|
|
|
};
|
|
|
|
|
2015-02-02 12:49:01 +00:00
|
|
|
//[Exposed=(Window,Worker)]
|
2013-08-01 06:57:25 +00:00
|
|
|
interface Crypto {
|
2014-05-15 10:20:00 +00:00
|
|
|
readonly attribute SubtleCrypto subtle;
|
2015-02-02 12:49:01 +00:00
|
|
|
|
|
|
|
[Throws]
|
|
|
|
ArrayBufferView getRandomValues(ArrayBufferView array);
|
2013-08-01 06:57:25 +00:00
|
|
|
};
|