1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SubtleCrypto , typescript_type = "SubtleCrypto")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `SubtleCrypto` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
13     pub type SubtleCrypto;
14     #[cfg(feature = "CryptoKey")]
15     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
16     #[doc = "The `decrypt()` method."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
decrypt_with_object_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>21     pub fn decrypt_with_object_and_buffer_source(
22         this: &SubtleCrypto,
23         algorithm: &::js_sys::Object,
24         key: &CryptoKey,
25         data: &::js_sys::Object,
26     ) -> Result<::js_sys::Promise, JsValue>;
27     #[cfg(feature = "CryptoKey")]
28     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
29     #[doc = "The `decrypt()` method."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
decrypt_with_str_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>34     pub fn decrypt_with_str_and_buffer_source(
35         this: &SubtleCrypto,
36         algorithm: &str,
37         key: &CryptoKey,
38         data: &::js_sys::Object,
39     ) -> Result<::js_sys::Promise, JsValue>;
40     #[cfg(feature = "CryptoKey")]
41     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
42     #[doc = "The `decrypt()` method."]
43     #[doc = ""]
44     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
45     #[doc = ""]
46     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
decrypt_with_object_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>47     pub fn decrypt_with_object_and_u8_array(
48         this: &SubtleCrypto,
49         algorithm: &::js_sys::Object,
50         key: &CryptoKey,
51         data: &mut [u8],
52     ) -> Result<::js_sys::Promise, JsValue>;
53     #[cfg(feature = "CryptoKey")]
54     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
55     #[doc = "The `decrypt()` method."]
56     #[doc = ""]
57     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
58     #[doc = ""]
59     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
decrypt_with_str_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>60     pub fn decrypt_with_str_and_u8_array(
61         this: &SubtleCrypto,
62         algorithm: &str,
63         key: &CryptoKey,
64         data: &mut [u8],
65     ) -> Result<::js_sys::Promise, JsValue>;
66     #[cfg(feature = "CryptoKey")]
67     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits)]
68     #[doc = "The `deriveBits()` method."]
69     #[doc = ""]
70     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"]
71     #[doc = ""]
72     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
derive_bits_with_object( this: &SubtleCrypto, algorithm: &::js_sys::Object, base_key: &CryptoKey, length: u32, ) -> Result<::js_sys::Promise, JsValue>73     pub fn derive_bits_with_object(
74         this: &SubtleCrypto,
75         algorithm: &::js_sys::Object,
76         base_key: &CryptoKey,
77         length: u32,
78     ) -> Result<::js_sys::Promise, JsValue>;
79     #[cfg(feature = "CryptoKey")]
80     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits)]
81     #[doc = "The `deriveBits()` method."]
82     #[doc = ""]
83     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"]
84     #[doc = ""]
85     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
derive_bits_with_str( this: &SubtleCrypto, algorithm: &str, base_key: &CryptoKey, length: u32, ) -> Result<::js_sys::Promise, JsValue>86     pub fn derive_bits_with_str(
87         this: &SubtleCrypto,
88         algorithm: &str,
89         base_key: &CryptoKey,
90         length: u32,
91     ) -> Result<::js_sys::Promise, JsValue>;
92     #[cfg(feature = "CryptoKey")]
93     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)]
94     #[doc = "The `deriveKey()` method."]
95     #[doc = ""]
96     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"]
97     #[doc = ""]
98     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
derive_key_with_object_and_object( this: &SubtleCrypto, algorithm: &::js_sys::Object, base_key: &CryptoKey, derived_key_type: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>99     pub fn derive_key_with_object_and_object(
100         this: &SubtleCrypto,
101         algorithm: &::js_sys::Object,
102         base_key: &CryptoKey,
103         derived_key_type: &::js_sys::Object,
104         extractable: bool,
105         key_usages: &::wasm_bindgen::JsValue,
106     ) -> Result<::js_sys::Promise, JsValue>;
107     #[cfg(feature = "CryptoKey")]
108     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)]
109     #[doc = "The `deriveKey()` method."]
110     #[doc = ""]
111     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"]
112     #[doc = ""]
113     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
derive_key_with_str_and_object( this: &SubtleCrypto, algorithm: &str, base_key: &CryptoKey, derived_key_type: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>114     pub fn derive_key_with_str_and_object(
115         this: &SubtleCrypto,
116         algorithm: &str,
117         base_key: &CryptoKey,
118         derived_key_type: &::js_sys::Object,
119         extractable: bool,
120         key_usages: &::wasm_bindgen::JsValue,
121     ) -> Result<::js_sys::Promise, JsValue>;
122     #[cfg(feature = "CryptoKey")]
123     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)]
124     #[doc = "The `deriveKey()` method."]
125     #[doc = ""]
126     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"]
127     #[doc = ""]
128     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
derive_key_with_object_and_str( this: &SubtleCrypto, algorithm: &::js_sys::Object, base_key: &CryptoKey, derived_key_type: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>129     pub fn derive_key_with_object_and_str(
130         this: &SubtleCrypto,
131         algorithm: &::js_sys::Object,
132         base_key: &CryptoKey,
133         derived_key_type: &str,
134         extractable: bool,
135         key_usages: &::wasm_bindgen::JsValue,
136     ) -> Result<::js_sys::Promise, JsValue>;
137     #[cfg(feature = "CryptoKey")]
138     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)]
139     #[doc = "The `deriveKey()` method."]
140     #[doc = ""]
141     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"]
142     #[doc = ""]
143     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
derive_key_with_str_and_str( this: &SubtleCrypto, algorithm: &str, base_key: &CryptoKey, derived_key_type: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>144     pub fn derive_key_with_str_and_str(
145         this: &SubtleCrypto,
146         algorithm: &str,
147         base_key: &CryptoKey,
148         derived_key_type: &str,
149         extractable: bool,
150         key_usages: &::wasm_bindgen::JsValue,
151     ) -> Result<::js_sys::Promise, JsValue>;
152     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
153     #[doc = "The `digest()` method."]
154     #[doc = ""]
155     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
156     #[doc = ""]
157     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
digest_with_object_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>158     pub fn digest_with_object_and_buffer_source(
159         this: &SubtleCrypto,
160         algorithm: &::js_sys::Object,
161         data: &::js_sys::Object,
162     ) -> Result<::js_sys::Promise, JsValue>;
163     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
164     #[doc = "The `digest()` method."]
165     #[doc = ""]
166     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
167     #[doc = ""]
168     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
digest_with_str_and_buffer_source( this: &SubtleCrypto, algorithm: &str, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>169     pub fn digest_with_str_and_buffer_source(
170         this: &SubtleCrypto,
171         algorithm: &str,
172         data: &::js_sys::Object,
173     ) -> Result<::js_sys::Promise, JsValue>;
174     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
175     #[doc = "The `digest()` method."]
176     #[doc = ""]
177     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
178     #[doc = ""]
179     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
digest_with_object_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>180     pub fn digest_with_object_and_u8_array(
181         this: &SubtleCrypto,
182         algorithm: &::js_sys::Object,
183         data: &mut [u8],
184     ) -> Result<::js_sys::Promise, JsValue>;
185     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
186     #[doc = "The `digest()` method."]
187     #[doc = ""]
188     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
189     #[doc = ""]
190     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
digest_with_str_and_u8_array( this: &SubtleCrypto, algorithm: &str, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>191     pub fn digest_with_str_and_u8_array(
192         this: &SubtleCrypto,
193         algorithm: &str,
194         data: &mut [u8],
195     ) -> Result<::js_sys::Promise, JsValue>;
196     #[cfg(feature = "CryptoKey")]
197     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
198     #[doc = "The `encrypt()` method."]
199     #[doc = ""]
200     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
201     #[doc = ""]
202     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
encrypt_with_object_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>203     pub fn encrypt_with_object_and_buffer_source(
204         this: &SubtleCrypto,
205         algorithm: &::js_sys::Object,
206         key: &CryptoKey,
207         data: &::js_sys::Object,
208     ) -> Result<::js_sys::Promise, JsValue>;
209     #[cfg(feature = "CryptoKey")]
210     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
211     #[doc = "The `encrypt()` method."]
212     #[doc = ""]
213     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
214     #[doc = ""]
215     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
encrypt_with_str_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>216     pub fn encrypt_with_str_and_buffer_source(
217         this: &SubtleCrypto,
218         algorithm: &str,
219         key: &CryptoKey,
220         data: &::js_sys::Object,
221     ) -> Result<::js_sys::Promise, JsValue>;
222     #[cfg(feature = "CryptoKey")]
223     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
224     #[doc = "The `encrypt()` method."]
225     #[doc = ""]
226     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
227     #[doc = ""]
228     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
encrypt_with_object_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>229     pub fn encrypt_with_object_and_u8_array(
230         this: &SubtleCrypto,
231         algorithm: &::js_sys::Object,
232         key: &CryptoKey,
233         data: &mut [u8],
234     ) -> Result<::js_sys::Promise, JsValue>;
235     #[cfg(feature = "CryptoKey")]
236     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
237     #[doc = "The `encrypt()` method."]
238     #[doc = ""]
239     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
240     #[doc = ""]
241     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
encrypt_with_str_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>242     pub fn encrypt_with_str_and_u8_array(
243         this: &SubtleCrypto,
244         algorithm: &str,
245         key: &CryptoKey,
246         data: &mut [u8],
247     ) -> Result<::js_sys::Promise, JsValue>;
248     #[cfg(feature = "CryptoKey")]
249     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = exportKey)]
250     #[doc = "The `exportKey()` method."]
251     #[doc = ""]
252     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey)"]
253     #[doc = ""]
254     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
export_key( this: &SubtleCrypto, format: &str, key: &CryptoKey, ) -> Result<::js_sys::Promise, JsValue>255     pub fn export_key(
256         this: &SubtleCrypto,
257         format: &str,
258         key: &CryptoKey,
259     ) -> Result<::js_sys::Promise, JsValue>;
260     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey)]
261     #[doc = "The `generateKey()` method."]
262     #[doc = ""]
263     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"]
264     #[doc = ""]
265     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
generate_key_with_object( this: &SubtleCrypto, algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>266     pub fn generate_key_with_object(
267         this: &SubtleCrypto,
268         algorithm: &::js_sys::Object,
269         extractable: bool,
270         key_usages: &::wasm_bindgen::JsValue,
271     ) -> Result<::js_sys::Promise, JsValue>;
272     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey)]
273     #[doc = "The `generateKey()` method."]
274     #[doc = ""]
275     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"]
276     #[doc = ""]
277     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
generate_key_with_str( this: &SubtleCrypto, algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>278     pub fn generate_key_with_str(
279         this: &SubtleCrypto,
280         algorithm: &str,
281         extractable: bool,
282         key_usages: &::wasm_bindgen::JsValue,
283     ) -> Result<::js_sys::Promise, JsValue>;
284     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey)]
285     #[doc = "The `importKey()` method."]
286     #[doc = ""]
287     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"]
288     #[doc = ""]
289     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
import_key_with_object( this: &SubtleCrypto, format: &str, key_data: &::js_sys::Object, algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>290     pub fn import_key_with_object(
291         this: &SubtleCrypto,
292         format: &str,
293         key_data: &::js_sys::Object,
294         algorithm: &::js_sys::Object,
295         extractable: bool,
296         key_usages: &::wasm_bindgen::JsValue,
297     ) -> Result<::js_sys::Promise, JsValue>;
298     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey)]
299     #[doc = "The `importKey()` method."]
300     #[doc = ""]
301     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"]
302     #[doc = ""]
303     #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
import_key_with_str( this: &SubtleCrypto, format: &str, key_data: &::js_sys::Object, algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>304     pub fn import_key_with_str(
305         this: &SubtleCrypto,
306         format: &str,
307         key_data: &::js_sys::Object,
308         algorithm: &str,
309         extractable: bool,
310         key_usages: &::wasm_bindgen::JsValue,
311     ) -> Result<::js_sys::Promise, JsValue>;
312     #[cfg(feature = "CryptoKey")]
313     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
314     #[doc = "The `sign()` method."]
315     #[doc = ""]
316     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
317     #[doc = ""]
318     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
sign_with_object_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>319     pub fn sign_with_object_and_buffer_source(
320         this: &SubtleCrypto,
321         algorithm: &::js_sys::Object,
322         key: &CryptoKey,
323         data: &::js_sys::Object,
324     ) -> Result<::js_sys::Promise, JsValue>;
325     #[cfg(feature = "CryptoKey")]
326     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
327     #[doc = "The `sign()` method."]
328     #[doc = ""]
329     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
330     #[doc = ""]
331     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
sign_with_str_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>332     pub fn sign_with_str_and_buffer_source(
333         this: &SubtleCrypto,
334         algorithm: &str,
335         key: &CryptoKey,
336         data: &::js_sys::Object,
337     ) -> Result<::js_sys::Promise, JsValue>;
338     #[cfg(feature = "CryptoKey")]
339     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
340     #[doc = "The `sign()` method."]
341     #[doc = ""]
342     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
343     #[doc = ""]
344     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
sign_with_object_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>345     pub fn sign_with_object_and_u8_array(
346         this: &SubtleCrypto,
347         algorithm: &::js_sys::Object,
348         key: &CryptoKey,
349         data: &mut [u8],
350     ) -> Result<::js_sys::Promise, JsValue>;
351     #[cfg(feature = "CryptoKey")]
352     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
353     #[doc = "The `sign()` method."]
354     #[doc = ""]
355     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
356     #[doc = ""]
357     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
sign_with_str_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>358     pub fn sign_with_str_and_u8_array(
359         this: &SubtleCrypto,
360         algorithm: &str,
361         key: &CryptoKey,
362         data: &mut [u8],
363     ) -> Result<::js_sys::Promise, JsValue>;
364     #[cfg(feature = "CryptoKey")]
365     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
366     #[doc = "The `unwrapKey()` method."]
367     #[doc = ""]
368     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
369     #[doc = ""]
370     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
unwrap_key_with_buffer_source_and_object_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Object, unwrapping_key: &CryptoKey, unwrap_algorithm: &::js_sys::Object, unwrapped_key_algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>371     pub fn unwrap_key_with_buffer_source_and_object_and_object(
372         this: &SubtleCrypto,
373         format: &str,
374         wrapped_key: &::js_sys::Object,
375         unwrapping_key: &CryptoKey,
376         unwrap_algorithm: &::js_sys::Object,
377         unwrapped_key_algorithm: &::js_sys::Object,
378         extractable: bool,
379         key_usages: &::wasm_bindgen::JsValue,
380     ) -> Result<::js_sys::Promise, JsValue>;
381     #[cfg(feature = "CryptoKey")]
382     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
383     #[doc = "The `unwrapKey()` method."]
384     #[doc = ""]
385     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
386     #[doc = ""]
387     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
unwrap_key_with_u8_array_and_object_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &mut [u8], unwrapping_key: &CryptoKey, unwrap_algorithm: &::js_sys::Object, unwrapped_key_algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>388     pub fn unwrap_key_with_u8_array_and_object_and_object(
389         this: &SubtleCrypto,
390         format: &str,
391         wrapped_key: &mut [u8],
392         unwrapping_key: &CryptoKey,
393         unwrap_algorithm: &::js_sys::Object,
394         unwrapped_key_algorithm: &::js_sys::Object,
395         extractable: bool,
396         key_usages: &::wasm_bindgen::JsValue,
397     ) -> Result<::js_sys::Promise, JsValue>;
398     #[cfg(feature = "CryptoKey")]
399     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
400     #[doc = "The `unwrapKey()` method."]
401     #[doc = ""]
402     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
403     #[doc = ""]
404     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
unwrap_key_with_buffer_source_and_str_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Object, unwrapping_key: &CryptoKey, unwrap_algorithm: &str, unwrapped_key_algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>405     pub fn unwrap_key_with_buffer_source_and_str_and_object(
406         this: &SubtleCrypto,
407         format: &str,
408         wrapped_key: &::js_sys::Object,
409         unwrapping_key: &CryptoKey,
410         unwrap_algorithm: &str,
411         unwrapped_key_algorithm: &::js_sys::Object,
412         extractable: bool,
413         key_usages: &::wasm_bindgen::JsValue,
414     ) -> Result<::js_sys::Promise, JsValue>;
415     #[cfg(feature = "CryptoKey")]
416     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
417     #[doc = "The `unwrapKey()` method."]
418     #[doc = ""]
419     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
420     #[doc = ""]
421     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
unwrap_key_with_u8_array_and_str_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &mut [u8], unwrapping_key: &CryptoKey, unwrap_algorithm: &str, unwrapped_key_algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>422     pub fn unwrap_key_with_u8_array_and_str_and_object(
423         this: &SubtleCrypto,
424         format: &str,
425         wrapped_key: &mut [u8],
426         unwrapping_key: &CryptoKey,
427         unwrap_algorithm: &str,
428         unwrapped_key_algorithm: &::js_sys::Object,
429         extractable: bool,
430         key_usages: &::wasm_bindgen::JsValue,
431     ) -> Result<::js_sys::Promise, JsValue>;
432     #[cfg(feature = "CryptoKey")]
433     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
434     #[doc = "The `unwrapKey()` method."]
435     #[doc = ""]
436     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
437     #[doc = ""]
438     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
unwrap_key_with_buffer_source_and_object_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Object, unwrapping_key: &CryptoKey, unwrap_algorithm: &::js_sys::Object, unwrapped_key_algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>439     pub fn unwrap_key_with_buffer_source_and_object_and_str(
440         this: &SubtleCrypto,
441         format: &str,
442         wrapped_key: &::js_sys::Object,
443         unwrapping_key: &CryptoKey,
444         unwrap_algorithm: &::js_sys::Object,
445         unwrapped_key_algorithm: &str,
446         extractable: bool,
447         key_usages: &::wasm_bindgen::JsValue,
448     ) -> Result<::js_sys::Promise, JsValue>;
449     #[cfg(feature = "CryptoKey")]
450     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
451     #[doc = "The `unwrapKey()` method."]
452     #[doc = ""]
453     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
454     #[doc = ""]
455     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
unwrap_key_with_u8_array_and_object_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &mut [u8], unwrapping_key: &CryptoKey, unwrap_algorithm: &::js_sys::Object, unwrapped_key_algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>456     pub fn unwrap_key_with_u8_array_and_object_and_str(
457         this: &SubtleCrypto,
458         format: &str,
459         wrapped_key: &mut [u8],
460         unwrapping_key: &CryptoKey,
461         unwrap_algorithm: &::js_sys::Object,
462         unwrapped_key_algorithm: &str,
463         extractable: bool,
464         key_usages: &::wasm_bindgen::JsValue,
465     ) -> Result<::js_sys::Promise, JsValue>;
466     #[cfg(feature = "CryptoKey")]
467     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
468     #[doc = "The `unwrapKey()` method."]
469     #[doc = ""]
470     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
471     #[doc = ""]
472     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
unwrap_key_with_buffer_source_and_str_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Object, unwrapping_key: &CryptoKey, unwrap_algorithm: &str, unwrapped_key_algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>473     pub fn unwrap_key_with_buffer_source_and_str_and_str(
474         this: &SubtleCrypto,
475         format: &str,
476         wrapped_key: &::js_sys::Object,
477         unwrapping_key: &CryptoKey,
478         unwrap_algorithm: &str,
479         unwrapped_key_algorithm: &str,
480         extractable: bool,
481         key_usages: &::wasm_bindgen::JsValue,
482     ) -> Result<::js_sys::Promise, JsValue>;
483     #[cfg(feature = "CryptoKey")]
484     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
485     #[doc = "The `unwrapKey()` method."]
486     #[doc = ""]
487     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
488     #[doc = ""]
489     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
unwrap_key_with_u8_array_and_str_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &mut [u8], unwrapping_key: &CryptoKey, unwrap_algorithm: &str, unwrapped_key_algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>490     pub fn unwrap_key_with_u8_array_and_str_and_str(
491         this: &SubtleCrypto,
492         format: &str,
493         wrapped_key: &mut [u8],
494         unwrapping_key: &CryptoKey,
495         unwrap_algorithm: &str,
496         unwrapped_key_algorithm: &str,
497         extractable: bool,
498         key_usages: &::wasm_bindgen::JsValue,
499     ) -> Result<::js_sys::Promise, JsValue>;
500     #[cfg(feature = "CryptoKey")]
501     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
502     #[doc = "The `verify()` method."]
503     #[doc = ""]
504     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
505     #[doc = ""]
506     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
verify_with_object_and_buffer_source_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &::js_sys::Object, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>507     pub fn verify_with_object_and_buffer_source_and_buffer_source(
508         this: &SubtleCrypto,
509         algorithm: &::js_sys::Object,
510         key: &CryptoKey,
511         signature: &::js_sys::Object,
512         data: &::js_sys::Object,
513     ) -> Result<::js_sys::Promise, JsValue>;
514     #[cfg(feature = "CryptoKey")]
515     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
516     #[doc = "The `verify()` method."]
517     #[doc = ""]
518     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
519     #[doc = ""]
520     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
verify_with_str_and_buffer_source_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &::js_sys::Object, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>521     pub fn verify_with_str_and_buffer_source_and_buffer_source(
522         this: &SubtleCrypto,
523         algorithm: &str,
524         key: &CryptoKey,
525         signature: &::js_sys::Object,
526         data: &::js_sys::Object,
527     ) -> Result<::js_sys::Promise, JsValue>;
528     #[cfg(feature = "CryptoKey")]
529     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
530     #[doc = "The `verify()` method."]
531     #[doc = ""]
532     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
533     #[doc = ""]
534     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
verify_with_object_and_u8_array_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &mut [u8], data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>535     pub fn verify_with_object_and_u8_array_and_buffer_source(
536         this: &SubtleCrypto,
537         algorithm: &::js_sys::Object,
538         key: &CryptoKey,
539         signature: &mut [u8],
540         data: &::js_sys::Object,
541     ) -> Result<::js_sys::Promise, JsValue>;
542     #[cfg(feature = "CryptoKey")]
543     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
544     #[doc = "The `verify()` method."]
545     #[doc = ""]
546     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
547     #[doc = ""]
548     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
verify_with_str_and_u8_array_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &mut [u8], data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>549     pub fn verify_with_str_and_u8_array_and_buffer_source(
550         this: &SubtleCrypto,
551         algorithm: &str,
552         key: &CryptoKey,
553         signature: &mut [u8],
554         data: &::js_sys::Object,
555     ) -> Result<::js_sys::Promise, JsValue>;
556     #[cfg(feature = "CryptoKey")]
557     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
558     #[doc = "The `verify()` method."]
559     #[doc = ""]
560     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
561     #[doc = ""]
562     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
verify_with_object_and_buffer_source_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &::js_sys::Object, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>563     pub fn verify_with_object_and_buffer_source_and_u8_array(
564         this: &SubtleCrypto,
565         algorithm: &::js_sys::Object,
566         key: &CryptoKey,
567         signature: &::js_sys::Object,
568         data: &mut [u8],
569     ) -> Result<::js_sys::Promise, JsValue>;
570     #[cfg(feature = "CryptoKey")]
571     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
572     #[doc = "The `verify()` method."]
573     #[doc = ""]
574     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
575     #[doc = ""]
576     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
verify_with_str_and_buffer_source_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &::js_sys::Object, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>577     pub fn verify_with_str_and_buffer_source_and_u8_array(
578         this: &SubtleCrypto,
579         algorithm: &str,
580         key: &CryptoKey,
581         signature: &::js_sys::Object,
582         data: &mut [u8],
583     ) -> Result<::js_sys::Promise, JsValue>;
584     #[cfg(feature = "CryptoKey")]
585     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
586     #[doc = "The `verify()` method."]
587     #[doc = ""]
588     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
589     #[doc = ""]
590     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
verify_with_object_and_u8_array_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &mut [u8], data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>591     pub fn verify_with_object_and_u8_array_and_u8_array(
592         this: &SubtleCrypto,
593         algorithm: &::js_sys::Object,
594         key: &CryptoKey,
595         signature: &mut [u8],
596         data: &mut [u8],
597     ) -> Result<::js_sys::Promise, JsValue>;
598     #[cfg(feature = "CryptoKey")]
599     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
600     #[doc = "The `verify()` method."]
601     #[doc = ""]
602     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
603     #[doc = ""]
604     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
verify_with_str_and_u8_array_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &mut [u8], data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>605     pub fn verify_with_str_and_u8_array_and_u8_array(
606         this: &SubtleCrypto,
607         algorithm: &str,
608         key: &CryptoKey,
609         signature: &mut [u8],
610         data: &mut [u8],
611     ) -> Result<::js_sys::Promise, JsValue>;
612     #[cfg(feature = "CryptoKey")]
613     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey)]
614     #[doc = "The `wrapKey()` method."]
615     #[doc = ""]
616     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"]
617     #[doc = ""]
618     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
wrap_key_with_object( this: &SubtleCrypto, format: &str, key: &CryptoKey, wrapping_key: &CryptoKey, wrap_algorithm: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>619     pub fn wrap_key_with_object(
620         this: &SubtleCrypto,
621         format: &str,
622         key: &CryptoKey,
623         wrapping_key: &CryptoKey,
624         wrap_algorithm: &::js_sys::Object,
625     ) -> Result<::js_sys::Promise, JsValue>;
626     #[cfg(feature = "CryptoKey")]
627     # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey)]
628     #[doc = "The `wrapKey()` method."]
629     #[doc = ""]
630     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"]
631     #[doc = ""]
632     #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
wrap_key_with_str( this: &SubtleCrypto, format: &str, key: &CryptoKey, wrapping_key: &CryptoKey, wrap_algorithm: &str, ) -> Result<::js_sys::Promise, JsValue>633     pub fn wrap_key_with_str(
634         this: &SubtleCrypto,
635         format: &str,
636         key: &CryptoKey,
637         wrapping_key: &CryptoKey,
638         wrap_algorithm: &str,
639     ) -> Result<::js_sys::Promise, JsValue>;
640 }
641