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