KeyAlgorithm.webidl (1089B)
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 */ 9 10 dictionary KeyAlgorithm { 11 required DOMString name; 12 }; 13 14 [GenerateConversionToJS] 15 dictionary AesKeyAlgorithm : KeyAlgorithm { 16 required unsigned short length; 17 }; 18 19 [GenerateConversionToJS] 20 dictionary EcKeyAlgorithm : KeyAlgorithm { 21 required DOMString namedCurve; 22 }; 23 24 [GenerateConversionToJS] 25 dictionary HmacKeyAlgorithm : KeyAlgorithm { 26 required KeyAlgorithm hash; 27 required unsigned long length; 28 }; 29 30 [GenerateConversionToJS] 31 dictionary RsaHashedKeyAlgorithm : KeyAlgorithm { 32 required unsigned short modulusLength; 33 required Uint8Array publicExponent; 34 required KeyAlgorithm hash; 35 }; 36 37 [GenerateConversionToJS] 38 dictionary DhKeyAlgorithm : KeyAlgorithm { 39 required Uint8Array prime; 40 required Uint8Array generator; 41 };