Bug 1634779 - pt 2. Partially revert Bug 1603006 r=kmag
[gecko.git] / dom / webidl / KeyAlgorithm.webidl
blobc5842f013e543bbcde56642a3e6e52811cc60b5a
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is
7  * http://www.w3.org/TR/WebCryptoAPI/
8  */
10 dictionary KeyAlgorithm {
11   required DOMString name;
14 [GenerateConversionToJS]
15 dictionary AesKeyAlgorithm : KeyAlgorithm {
16   required unsigned short length;
19 [GenerateConversionToJS]
20 dictionary EcKeyAlgorithm : KeyAlgorithm {
21   required DOMString namedCurve;
24 [GenerateConversionToJS]
25 dictionary HmacKeyAlgorithm : KeyAlgorithm {
26   required KeyAlgorithm hash;
27   required unsigned long length;
30 [GenerateConversionToJS]
31 dictionary RsaHashedKeyAlgorithm : KeyAlgorithm {
32   required unsigned short modulusLength;
33   required Uint8Array publicExponent;
34   required KeyAlgorithm hash;
37 [GenerateConversionToJS]
38 dictionary DhKeyAlgorithm : KeyAlgorithm {
39   required Uint8Array prime;
40   required Uint8Array generator;