1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SubtleCrypto , typescript_type = "SubtleCrypto")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SubtleCrypto` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
14 pub type SubtleCrypto;
15 #[cfg(feature = "CryptoKey")]
16 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
17 #[doc = "The `decrypt()` method."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
22 pub fn decrypt_with_object_and_buffer_source(
23 this: &SubtleCrypto,
24 algorithm: &::js_sys::Object,
25 key: &CryptoKey,
26 data: &::js_sys::Object,
27 ) -> Result<::js_sys::Promise, JsValue>;
28 #[cfg(feature = "CryptoKey")]
29 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
30 #[doc = "The `decrypt()` method."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
35 pub fn decrypt_with_str_and_buffer_source(
36 this: &SubtleCrypto,
37 algorithm: &str,
38 key: &CryptoKey,
39 data: &::js_sys::Object,
40 ) -> Result<::js_sys::Promise, JsValue>;
41 #[cfg(feature = "CryptoKey")]
42 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
43 #[doc = "The `decrypt()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
48 pub fn decrypt_with_object_and_u8_array(
49 this: &SubtleCrypto,
50 algorithm: &::js_sys::Object,
51 key: &CryptoKey,
52 data: &[u8],
53 ) -> Result<::js_sys::Promise, JsValue>;
54 #[cfg(feature = "CryptoKey")]
55 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
56 #[doc = "The `decrypt()` method."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
61 pub fn decrypt_with_str_and_u8_array(
62 this: &SubtleCrypto,
63 algorithm: &str,
64 key: &CryptoKey,
65 data: &[u8],
66 ) -> Result<::js_sys::Promise, JsValue>;
67 #[cfg(feature = "CryptoKey")]
68 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
69 #[doc = "The `decrypt()` method."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
74 pub fn decrypt_with_object_and_js_u8_array(
75 this: &SubtleCrypto,
76 algorithm: &::js_sys::Object,
77 key: &CryptoKey,
78 data: &::js_sys::Uint8Array,
79 ) -> Result<::js_sys::Promise, JsValue>;
80 #[cfg(feature = "CryptoKey")]
81 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)]
82 #[doc = "The `decrypt()` method."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
87 pub fn decrypt_with_str_and_js_u8_array(
88 this: &SubtleCrypto,
89 algorithm: &str,
90 key: &CryptoKey,
91 data: &::js_sys::Uint8Array,
92 ) -> Result<::js_sys::Promise, JsValue>;
93 #[cfg(feature = "CryptoKey")]
94 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits)]
95 #[doc = "The `deriveBits()` method."]
96 #[doc = ""]
97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
100 pub fn derive_bits_with_object(
101 this: &SubtleCrypto,
102 algorithm: &::js_sys::Object,
103 base_key: &CryptoKey,
104 length: u32,
105 ) -> Result<::js_sys::Promise, JsValue>;
106 #[cfg(feature = "CryptoKey")]
107 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits)]
108 #[doc = "The `deriveBits()` method."]
109 #[doc = ""]
110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
113 pub fn derive_bits_with_str(
114 this: &SubtleCrypto,
115 algorithm: &str,
116 base_key: &CryptoKey,
117 length: u32,
118 ) -> Result<::js_sys::Promise, JsValue>;
119 #[cfg(feature = "CryptoKey")]
120 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)]
121 #[doc = "The `deriveKey()` method."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
126 pub fn derive_key_with_object_and_object(
127 this: &SubtleCrypto,
128 algorithm: &::js_sys::Object,
129 base_key: &CryptoKey,
130 derived_key_type: &::js_sys::Object,
131 extractable: bool,
132 key_usages: &::wasm_bindgen::JsValue,
133 ) -> Result<::js_sys::Promise, JsValue>;
134 #[cfg(feature = "CryptoKey")]
135 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)]
136 #[doc = "The `deriveKey()` method."]
137 #[doc = ""]
138 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"]
139 #[doc = ""]
140 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
141 pub fn derive_key_with_str_and_object(
142 this: &SubtleCrypto,
143 algorithm: &str,
144 base_key: &CryptoKey,
145 derived_key_type: &::js_sys::Object,
146 extractable: bool,
147 key_usages: &::wasm_bindgen::JsValue,
148 ) -> Result<::js_sys::Promise, JsValue>;
149 #[cfg(feature = "CryptoKey")]
150 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)]
151 #[doc = "The `deriveKey()` method."]
152 #[doc = ""]
153 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
156 pub fn derive_key_with_object_and_str(
157 this: &SubtleCrypto,
158 algorithm: &::js_sys::Object,
159 base_key: &CryptoKey,
160 derived_key_type: &str,
161 extractable: bool,
162 key_usages: &::wasm_bindgen::JsValue,
163 ) -> Result<::js_sys::Promise, JsValue>;
164 #[cfg(feature = "CryptoKey")]
165 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)]
166 #[doc = "The `deriveKey()` method."]
167 #[doc = ""]
168 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"]
169 #[doc = ""]
170 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
171 pub fn derive_key_with_str_and_str(
172 this: &SubtleCrypto,
173 algorithm: &str,
174 base_key: &CryptoKey,
175 derived_key_type: &str,
176 extractable: bool,
177 key_usages: &::wasm_bindgen::JsValue,
178 ) -> Result<::js_sys::Promise, JsValue>;
179 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
180 #[doc = "The `digest()` method."]
181 #[doc = ""]
182 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
183 #[doc = ""]
184 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
185 pub fn digest_with_object_and_buffer_source(
186 this: &SubtleCrypto,
187 algorithm: &::js_sys::Object,
188 data: &::js_sys::Object,
189 ) -> Result<::js_sys::Promise, JsValue>;
190 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
191 #[doc = "The `digest()` method."]
192 #[doc = ""]
193 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
194 #[doc = ""]
195 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
196 pub fn digest_with_str_and_buffer_source(
197 this: &SubtleCrypto,
198 algorithm: &str,
199 data: &::js_sys::Object,
200 ) -> Result<::js_sys::Promise, JsValue>;
201 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
202 #[doc = "The `digest()` method."]
203 #[doc = ""]
204 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
205 #[doc = ""]
206 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
207 pub fn digest_with_object_and_u8_array(
208 this: &SubtleCrypto,
209 algorithm: &::js_sys::Object,
210 data: &[u8],
211 ) -> Result<::js_sys::Promise, JsValue>;
212 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
213 #[doc = "The `digest()` method."]
214 #[doc = ""]
215 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
218 pub fn digest_with_str_and_u8_array(
219 this: &SubtleCrypto,
220 algorithm: &str,
221 data: &[u8],
222 ) -> Result<::js_sys::Promise, JsValue>;
223 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
224 #[doc = "The `digest()` method."]
225 #[doc = ""]
226 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
227 #[doc = ""]
228 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
229 pub fn digest_with_object_and_js_u8_array(
230 this: &SubtleCrypto,
231 algorithm: &::js_sys::Object,
232 data: &::js_sys::Uint8Array,
233 ) -> Result<::js_sys::Promise, JsValue>;
234 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)]
235 #[doc = "The `digest()` method."]
236 #[doc = ""]
237 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"]
238 #[doc = ""]
239 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
240 pub fn digest_with_str_and_js_u8_array(
241 this: &SubtleCrypto,
242 algorithm: &str,
243 data: &::js_sys::Uint8Array,
244 ) -> Result<::js_sys::Promise, JsValue>;
245 #[cfg(feature = "CryptoKey")]
246 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
247 #[doc = "The `encrypt()` method."]
248 #[doc = ""]
249 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
250 #[doc = ""]
251 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
252 pub fn encrypt_with_object_and_buffer_source(
253 this: &SubtleCrypto,
254 algorithm: &::js_sys::Object,
255 key: &CryptoKey,
256 data: &::js_sys::Object,
257 ) -> Result<::js_sys::Promise, JsValue>;
258 #[cfg(feature = "CryptoKey")]
259 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
260 #[doc = "The `encrypt()` method."]
261 #[doc = ""]
262 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
263 #[doc = ""]
264 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
265 pub fn encrypt_with_str_and_buffer_source(
266 this: &SubtleCrypto,
267 algorithm: &str,
268 key: &CryptoKey,
269 data: &::js_sys::Object,
270 ) -> Result<::js_sys::Promise, JsValue>;
271 #[cfg(feature = "CryptoKey")]
272 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
273 #[doc = "The `encrypt()` method."]
274 #[doc = ""]
275 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
276 #[doc = ""]
277 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
278 pub fn encrypt_with_object_and_u8_array(
279 this: &SubtleCrypto,
280 algorithm: &::js_sys::Object,
281 key: &CryptoKey,
282 data: &[u8],
283 ) -> Result<::js_sys::Promise, JsValue>;
284 #[cfg(feature = "CryptoKey")]
285 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
286 #[doc = "The `encrypt()` method."]
287 #[doc = ""]
288 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
289 #[doc = ""]
290 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
291 pub fn encrypt_with_str_and_u8_array(
292 this: &SubtleCrypto,
293 algorithm: &str,
294 key: &CryptoKey,
295 data: &[u8],
296 ) -> Result<::js_sys::Promise, JsValue>;
297 #[cfg(feature = "CryptoKey")]
298 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
299 #[doc = "The `encrypt()` method."]
300 #[doc = ""]
301 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
302 #[doc = ""]
303 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
304 pub fn encrypt_with_object_and_js_u8_array(
305 this: &SubtleCrypto,
306 algorithm: &::js_sys::Object,
307 key: &CryptoKey,
308 data: &::js_sys::Uint8Array,
309 ) -> Result<::js_sys::Promise, JsValue>;
310 #[cfg(feature = "CryptoKey")]
311 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)]
312 #[doc = "The `encrypt()` method."]
313 #[doc = ""]
314 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"]
315 #[doc = ""]
316 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
317 pub fn encrypt_with_str_and_js_u8_array(
318 this: &SubtleCrypto,
319 algorithm: &str,
320 key: &CryptoKey,
321 data: &::js_sys::Uint8Array,
322 ) -> Result<::js_sys::Promise, JsValue>;
323 #[cfg(feature = "CryptoKey")]
324 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = exportKey)]
325 #[doc = "The `exportKey()` method."]
326 #[doc = ""]
327 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey)"]
328 #[doc = ""]
329 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
330 pub fn export_key(
331 this: &SubtleCrypto,
332 format: &str,
333 key: &CryptoKey,
334 ) -> Result<::js_sys::Promise, JsValue>;
335 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey)]
336 #[doc = "The `generateKey()` method."]
337 #[doc = ""]
338 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"]
339 #[doc = ""]
340 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
341 pub fn generate_key_with_object(
342 this: &SubtleCrypto,
343 algorithm: &::js_sys::Object,
344 extractable: bool,
345 key_usages: &::wasm_bindgen::JsValue,
346 ) -> Result<::js_sys::Promise, JsValue>;
347 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey)]
348 #[doc = "The `generateKey()` method."]
349 #[doc = ""]
350 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"]
351 #[doc = ""]
352 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
353 pub fn generate_key_with_str(
354 this: &SubtleCrypto,
355 algorithm: &str,
356 extractable: bool,
357 key_usages: &::wasm_bindgen::JsValue,
358 ) -> Result<::js_sys::Promise, JsValue>;
359 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey)]
360 #[doc = "The `importKey()` method."]
361 #[doc = ""]
362 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"]
363 #[doc = ""]
364 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
365 pub fn import_key_with_object(
366 this: &SubtleCrypto,
367 format: &str,
368 key_data: &::js_sys::Object,
369 algorithm: &::js_sys::Object,
370 extractable: bool,
371 key_usages: &::wasm_bindgen::JsValue,
372 ) -> Result<::js_sys::Promise, JsValue>;
373 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey)]
374 #[doc = "The `importKey()` method."]
375 #[doc = ""]
376 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"]
377 #[doc = ""]
378 #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"]
379 pub fn import_key_with_str(
380 this: &SubtleCrypto,
381 format: &str,
382 key_data: &::js_sys::Object,
383 algorithm: &str,
384 extractable: bool,
385 key_usages: &::wasm_bindgen::JsValue,
386 ) -> Result<::js_sys::Promise, JsValue>;
387 #[cfg(feature = "CryptoKey")]
388 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
389 #[doc = "The `sign()` method."]
390 #[doc = ""]
391 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
392 #[doc = ""]
393 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
394 pub fn sign_with_object_and_buffer_source(
395 this: &SubtleCrypto,
396 algorithm: &::js_sys::Object,
397 key: &CryptoKey,
398 data: &::js_sys::Object,
399 ) -> Result<::js_sys::Promise, JsValue>;
400 #[cfg(feature = "CryptoKey")]
401 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
402 #[doc = "The `sign()` method."]
403 #[doc = ""]
404 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
405 #[doc = ""]
406 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
407 pub fn sign_with_str_and_buffer_source(
408 this: &SubtleCrypto,
409 algorithm: &str,
410 key: &CryptoKey,
411 data: &::js_sys::Object,
412 ) -> Result<::js_sys::Promise, JsValue>;
413 #[cfg(feature = "CryptoKey")]
414 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
415 #[doc = "The `sign()` method."]
416 #[doc = ""]
417 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
418 #[doc = ""]
419 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
420 pub fn sign_with_object_and_u8_array(
421 this: &SubtleCrypto,
422 algorithm: &::js_sys::Object,
423 key: &CryptoKey,
424 data: &[u8],
425 ) -> Result<::js_sys::Promise, JsValue>;
426 #[cfg(feature = "CryptoKey")]
427 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
428 #[doc = "The `sign()` method."]
429 #[doc = ""]
430 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
431 #[doc = ""]
432 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
433 pub fn sign_with_str_and_u8_array(
434 this: &SubtleCrypto,
435 algorithm: &str,
436 key: &CryptoKey,
437 data: &[u8],
438 ) -> Result<::js_sys::Promise, JsValue>;
439 #[cfg(feature = "CryptoKey")]
440 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
441 #[doc = "The `sign()` method."]
442 #[doc = ""]
443 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
444 #[doc = ""]
445 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
446 pub fn sign_with_object_and_js_u8_array(
447 this: &SubtleCrypto,
448 algorithm: &::js_sys::Object,
449 key: &CryptoKey,
450 data: &::js_sys::Uint8Array,
451 ) -> Result<::js_sys::Promise, JsValue>;
452 #[cfg(feature = "CryptoKey")]
453 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)]
454 #[doc = "The `sign()` method."]
455 #[doc = ""]
456 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"]
457 #[doc = ""]
458 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
459 pub fn sign_with_str_and_js_u8_array(
460 this: &SubtleCrypto,
461 algorithm: &str,
462 key: &CryptoKey,
463 data: &::js_sys::Uint8Array,
464 ) -> Result<::js_sys::Promise, JsValue>;
465 #[cfg(feature = "CryptoKey")]
466 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
467 #[doc = "The `unwrapKey()` method."]
468 #[doc = ""]
469 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
470 #[doc = ""]
471 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
472 pub fn unwrap_key_with_buffer_source_and_object_and_object(
473 this: &SubtleCrypto,
474 format: &str,
475 wrapped_key: &::js_sys::Object,
476 unwrapping_key: &CryptoKey,
477 unwrap_algorithm: &::js_sys::Object,
478 unwrapped_key_algorithm: &::js_sys::Object,
479 extractable: bool,
480 key_usages: &::wasm_bindgen::JsValue,
481 ) -> Result<::js_sys::Promise, JsValue>;
482 #[cfg(feature = "CryptoKey")]
483 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
484 #[doc = "The `unwrapKey()` method."]
485 #[doc = ""]
486 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
487 #[doc = ""]
488 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
489 pub fn unwrap_key_with_u8_array_and_object_and_object(
490 this: &SubtleCrypto,
491 format: &str,
492 wrapped_key: &[u8],
493 unwrapping_key: &CryptoKey,
494 unwrap_algorithm: &::js_sys::Object,
495 unwrapped_key_algorithm: &::js_sys::Object,
496 extractable: bool,
497 key_usages: &::wasm_bindgen::JsValue,
498 ) -> Result<::js_sys::Promise, JsValue>;
499 #[cfg(feature = "CryptoKey")]
500 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
501 #[doc = "The `unwrapKey()` method."]
502 #[doc = ""]
503 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
504 #[doc = ""]
505 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
506 pub fn unwrap_key_with_js_u8_array_and_object_and_object(
507 this: &SubtleCrypto,
508 format: &str,
509 wrapped_key: &::js_sys::Uint8Array,
510 unwrapping_key: &CryptoKey,
511 unwrap_algorithm: &::js_sys::Object,
512 unwrapped_key_algorithm: &::js_sys::Object,
513 extractable: bool,
514 key_usages: &::wasm_bindgen::JsValue,
515 ) -> Result<::js_sys::Promise, JsValue>;
516 #[cfg(feature = "CryptoKey")]
517 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
518 #[doc = "The `unwrapKey()` method."]
519 #[doc = ""]
520 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
521 #[doc = ""]
522 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
523 pub fn unwrap_key_with_buffer_source_and_str_and_object(
524 this: &SubtleCrypto,
525 format: &str,
526 wrapped_key: &::js_sys::Object,
527 unwrapping_key: &CryptoKey,
528 unwrap_algorithm: &str,
529 unwrapped_key_algorithm: &::js_sys::Object,
530 extractable: bool,
531 key_usages: &::wasm_bindgen::JsValue,
532 ) -> Result<::js_sys::Promise, JsValue>;
533 #[cfg(feature = "CryptoKey")]
534 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
535 #[doc = "The `unwrapKey()` method."]
536 #[doc = ""]
537 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
538 #[doc = ""]
539 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
540 pub fn unwrap_key_with_u8_array_and_str_and_object(
541 this: &SubtleCrypto,
542 format: &str,
543 wrapped_key: &[u8],
544 unwrapping_key: &CryptoKey,
545 unwrap_algorithm: &str,
546 unwrapped_key_algorithm: &::js_sys::Object,
547 extractable: bool,
548 key_usages: &::wasm_bindgen::JsValue,
549 ) -> Result<::js_sys::Promise, JsValue>;
550 #[cfg(feature = "CryptoKey")]
551 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
552 #[doc = "The `unwrapKey()` method."]
553 #[doc = ""]
554 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
555 #[doc = ""]
556 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
557 pub fn unwrap_key_with_js_u8_array_and_str_and_object(
558 this: &SubtleCrypto,
559 format: &str,
560 wrapped_key: &::js_sys::Uint8Array,
561 unwrapping_key: &CryptoKey,
562 unwrap_algorithm: &str,
563 unwrapped_key_algorithm: &::js_sys::Object,
564 extractable: bool,
565 key_usages: &::wasm_bindgen::JsValue,
566 ) -> Result<::js_sys::Promise, JsValue>;
567 #[cfg(feature = "CryptoKey")]
568 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
569 #[doc = "The `unwrapKey()` method."]
570 #[doc = ""]
571 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
572 #[doc = ""]
573 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
574 pub fn unwrap_key_with_buffer_source_and_object_and_str(
575 this: &SubtleCrypto,
576 format: &str,
577 wrapped_key: &::js_sys::Object,
578 unwrapping_key: &CryptoKey,
579 unwrap_algorithm: &::js_sys::Object,
580 unwrapped_key_algorithm: &str,
581 extractable: bool,
582 key_usages: &::wasm_bindgen::JsValue,
583 ) -> Result<::js_sys::Promise, JsValue>;
584 #[cfg(feature = "CryptoKey")]
585 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
586 #[doc = "The `unwrapKey()` method."]
587 #[doc = ""]
588 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
589 #[doc = ""]
590 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
591 pub fn unwrap_key_with_u8_array_and_object_and_str(
592 this: &SubtleCrypto,
593 format: &str,
594 wrapped_key: &[u8],
595 unwrapping_key: &CryptoKey,
596 unwrap_algorithm: &::js_sys::Object,
597 unwrapped_key_algorithm: &str,
598 extractable: bool,
599 key_usages: &::wasm_bindgen::JsValue,
600 ) -> Result<::js_sys::Promise, JsValue>;
601 #[cfg(feature = "CryptoKey")]
602 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
603 #[doc = "The `unwrapKey()` method."]
604 #[doc = ""]
605 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
606 #[doc = ""]
607 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
608 pub fn unwrap_key_with_js_u8_array_and_object_and_str(
609 this: &SubtleCrypto,
610 format: &str,
611 wrapped_key: &::js_sys::Uint8Array,
612 unwrapping_key: &CryptoKey,
613 unwrap_algorithm: &::js_sys::Object,
614 unwrapped_key_algorithm: &str,
615 extractable: bool,
616 key_usages: &::wasm_bindgen::JsValue,
617 ) -> Result<::js_sys::Promise, JsValue>;
618 #[cfg(feature = "CryptoKey")]
619 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
620 #[doc = "The `unwrapKey()` method."]
621 #[doc = ""]
622 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
623 #[doc = ""]
624 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
625 pub fn unwrap_key_with_buffer_source_and_str_and_str(
626 this: &SubtleCrypto,
627 format: &str,
628 wrapped_key: &::js_sys::Object,
629 unwrapping_key: &CryptoKey,
630 unwrap_algorithm: &str,
631 unwrapped_key_algorithm: &str,
632 extractable: bool,
633 key_usages: &::wasm_bindgen::JsValue,
634 ) -> Result<::js_sys::Promise, JsValue>;
635 #[cfg(feature = "CryptoKey")]
636 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
637 #[doc = "The `unwrapKey()` method."]
638 #[doc = ""]
639 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
640 #[doc = ""]
641 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
642 pub fn unwrap_key_with_u8_array_and_str_and_str(
643 this: &SubtleCrypto,
644 format: &str,
645 wrapped_key: &[u8],
646 unwrapping_key: &CryptoKey,
647 unwrap_algorithm: &str,
648 unwrapped_key_algorithm: &str,
649 extractable: bool,
650 key_usages: &::wasm_bindgen::JsValue,
651 ) -> Result<::js_sys::Promise, JsValue>;
652 #[cfg(feature = "CryptoKey")]
653 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)]
654 #[doc = "The `unwrapKey()` method."]
655 #[doc = ""]
656 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"]
657 #[doc = ""]
658 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
659 pub fn unwrap_key_with_js_u8_array_and_str_and_str(
660 this: &SubtleCrypto,
661 format: &str,
662 wrapped_key: &::js_sys::Uint8Array,
663 unwrapping_key: &CryptoKey,
664 unwrap_algorithm: &str,
665 unwrapped_key_algorithm: &str,
666 extractable: bool,
667 key_usages: &::wasm_bindgen::JsValue,
668 ) -> Result<::js_sys::Promise, JsValue>;
669 #[cfg(feature = "CryptoKey")]
670 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
671 #[doc = "The `verify()` method."]
672 #[doc = ""]
673 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
674 #[doc = ""]
675 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
676 pub fn verify_with_object_and_buffer_source_and_buffer_source(
677 this: &SubtleCrypto,
678 algorithm: &::js_sys::Object,
679 key: &CryptoKey,
680 signature: &::js_sys::Object,
681 data: &::js_sys::Object,
682 ) -> Result<::js_sys::Promise, JsValue>;
683 #[cfg(feature = "CryptoKey")]
684 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
685 #[doc = "The `verify()` method."]
686 #[doc = ""]
687 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
688 #[doc = ""]
689 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
690 pub fn verify_with_str_and_buffer_source_and_buffer_source(
691 this: &SubtleCrypto,
692 algorithm: &str,
693 key: &CryptoKey,
694 signature: &::js_sys::Object,
695 data: &::js_sys::Object,
696 ) -> Result<::js_sys::Promise, JsValue>;
697 #[cfg(feature = "CryptoKey")]
698 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
699 #[doc = "The `verify()` method."]
700 #[doc = ""]
701 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
702 #[doc = ""]
703 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
704 pub fn verify_with_object_and_u8_array_and_buffer_source(
705 this: &SubtleCrypto,
706 algorithm: &::js_sys::Object,
707 key: &CryptoKey,
708 signature: &[u8],
709 data: &::js_sys::Object,
710 ) -> Result<::js_sys::Promise, JsValue>;
711 #[cfg(feature = "CryptoKey")]
712 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
713 #[doc = "The `verify()` method."]
714 #[doc = ""]
715 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
716 #[doc = ""]
717 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
718 pub fn verify_with_str_and_u8_array_and_buffer_source(
719 this: &SubtleCrypto,
720 algorithm: &str,
721 key: &CryptoKey,
722 signature: &[u8],
723 data: &::js_sys::Object,
724 ) -> Result<::js_sys::Promise, JsValue>;
725 #[cfg(feature = "CryptoKey")]
726 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
727 #[doc = "The `verify()` method."]
728 #[doc = ""]
729 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
730 #[doc = ""]
731 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
732 pub fn verify_with_object_and_js_u8_array_and_buffer_source(
733 this: &SubtleCrypto,
734 algorithm: &::js_sys::Object,
735 key: &CryptoKey,
736 signature: &::js_sys::Uint8Array,
737 data: &::js_sys::Object,
738 ) -> Result<::js_sys::Promise, JsValue>;
739 #[cfg(feature = "CryptoKey")]
740 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
741 #[doc = "The `verify()` method."]
742 #[doc = ""]
743 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
744 #[doc = ""]
745 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
746 pub fn verify_with_str_and_js_u8_array_and_buffer_source(
747 this: &SubtleCrypto,
748 algorithm: &str,
749 key: &CryptoKey,
750 signature: &::js_sys::Uint8Array,
751 data: &::js_sys::Object,
752 ) -> Result<::js_sys::Promise, JsValue>;
753 #[cfg(feature = "CryptoKey")]
754 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
755 #[doc = "The `verify()` method."]
756 #[doc = ""]
757 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
758 #[doc = ""]
759 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
760 pub fn verify_with_object_and_buffer_source_and_u8_array(
761 this: &SubtleCrypto,
762 algorithm: &::js_sys::Object,
763 key: &CryptoKey,
764 signature: &::js_sys::Object,
765 data: &[u8],
766 ) -> Result<::js_sys::Promise, JsValue>;
767 #[cfg(feature = "CryptoKey")]
768 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
769 #[doc = "The `verify()` method."]
770 #[doc = ""]
771 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
772 #[doc = ""]
773 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
774 pub fn verify_with_str_and_buffer_source_and_u8_array(
775 this: &SubtleCrypto,
776 algorithm: &str,
777 key: &CryptoKey,
778 signature: &::js_sys::Object,
779 data: &[u8],
780 ) -> Result<::js_sys::Promise, JsValue>;
781 #[cfg(feature = "CryptoKey")]
782 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
783 #[doc = "The `verify()` method."]
784 #[doc = ""]
785 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
786 #[doc = ""]
787 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
788 pub fn verify_with_object_and_u8_array_and_u8_array(
789 this: &SubtleCrypto,
790 algorithm: &::js_sys::Object,
791 key: &CryptoKey,
792 signature: &[u8],
793 data: &[u8],
794 ) -> Result<::js_sys::Promise, JsValue>;
795 #[cfg(feature = "CryptoKey")]
796 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
797 #[doc = "The `verify()` method."]
798 #[doc = ""]
799 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
800 #[doc = ""]
801 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
802 pub fn verify_with_str_and_u8_array_and_u8_array(
803 this: &SubtleCrypto,
804 algorithm: &str,
805 key: &CryptoKey,
806 signature: &[u8],
807 data: &[u8],
808 ) -> Result<::js_sys::Promise, JsValue>;
809 #[cfg(feature = "CryptoKey")]
810 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
811 #[doc = "The `verify()` method."]
812 #[doc = ""]
813 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
814 #[doc = ""]
815 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
816 pub fn verify_with_object_and_u8_array_and_u8_slice(
817 this: &SubtleCrypto,
818 algorithm: &::js_sys::Object,
819 key: &CryptoKey,
820 signature: &::js_sys::Uint8Array,
821 data: &[u8],
822 ) -> Result<::js_sys::Promise, JsValue>;
823 #[cfg(feature = "CryptoKey")]
824 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
825 #[doc = "The `verify()` method."]
826 #[doc = ""]
827 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
828 #[doc = ""]
829 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
830 pub fn verify_with_str_and_u8_array_and_u8_slice(
831 this: &SubtleCrypto,
832 algorithm: &str,
833 key: &CryptoKey,
834 signature: &::js_sys::Uint8Array,
835 data: &[u8],
836 ) -> Result<::js_sys::Promise, JsValue>;
837 #[cfg(feature = "CryptoKey")]
838 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
839 #[doc = "The `verify()` method."]
840 #[doc = ""]
841 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
842 #[doc = ""]
843 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
844 pub fn verify_with_object_and_buffer_source_and_js_u8_array(
845 this: &SubtleCrypto,
846 algorithm: &::js_sys::Object,
847 key: &CryptoKey,
848 signature: &::js_sys::Object,
849 data: &::js_sys::Uint8Array,
850 ) -> Result<::js_sys::Promise, JsValue>;
851 #[cfg(feature = "CryptoKey")]
852 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
853 #[doc = "The `verify()` method."]
854 #[doc = ""]
855 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
856 #[doc = ""]
857 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
858 pub fn verify_with_str_and_buffer_source_and_js_u8_array(
859 this: &SubtleCrypto,
860 algorithm: &str,
861 key: &CryptoKey,
862 signature: &::js_sys::Object,
863 data: &::js_sys::Uint8Array,
864 ) -> Result<::js_sys::Promise, JsValue>;
865 #[cfg(feature = "CryptoKey")]
866 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
867 #[doc = "The `verify()` method."]
868 #[doc = ""]
869 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
870 #[doc = ""]
871 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
872 pub fn verify_with_object_and_u8_slice_and_u8_array(
873 this: &SubtleCrypto,
874 algorithm: &::js_sys::Object,
875 key: &CryptoKey,
876 signature: &[u8],
877 data: &::js_sys::Uint8Array,
878 ) -> Result<::js_sys::Promise, JsValue>;
879 #[cfg(feature = "CryptoKey")]
880 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
881 #[doc = "The `verify()` method."]
882 #[doc = ""]
883 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
884 #[doc = ""]
885 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
886 pub fn verify_with_str_and_u8_slice_and_u8_array(
887 this: &SubtleCrypto,
888 algorithm: &str,
889 key: &CryptoKey,
890 signature: &[u8],
891 data: &::js_sys::Uint8Array,
892 ) -> Result<::js_sys::Promise, JsValue>;
893 #[cfg(feature = "CryptoKey")]
894 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
895 #[doc = "The `verify()` method."]
896 #[doc = ""]
897 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
898 #[doc = ""]
899 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
900 pub fn verify_with_object_and_js_u8_array_and_js_u8_array(
901 this: &SubtleCrypto,
902 algorithm: &::js_sys::Object,
903 key: &CryptoKey,
904 signature: &::js_sys::Uint8Array,
905 data: &::js_sys::Uint8Array,
906 ) -> Result<::js_sys::Promise, JsValue>;
907 #[cfg(feature = "CryptoKey")]
908 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)]
909 #[doc = "The `verify()` method."]
910 #[doc = ""]
911 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"]
912 #[doc = ""]
913 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
914 pub fn verify_with_str_and_js_u8_array_and_js_u8_array(
915 this: &SubtleCrypto,
916 algorithm: &str,
917 key: &CryptoKey,
918 signature: &::js_sys::Uint8Array,
919 data: &::js_sys::Uint8Array,
920 ) -> Result<::js_sys::Promise, JsValue>;
921 #[cfg(feature = "CryptoKey")]
922 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey)]
923 #[doc = "The `wrapKey()` method."]
924 #[doc = ""]
925 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"]
926 #[doc = ""]
927 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
928 pub fn wrap_key_with_object(
929 this: &SubtleCrypto,
930 format: &str,
931 key: &CryptoKey,
932 wrapping_key: &CryptoKey,
933 wrap_algorithm: &::js_sys::Object,
934 ) -> Result<::js_sys::Promise, JsValue>;
935 #[cfg(feature = "CryptoKey")]
936 # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey)]
937 #[doc = "The `wrapKey()` method."]
938 #[doc = ""]
939 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"]
940 #[doc = ""]
941 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"]
942 pub fn wrap_key_with_str(
943 this: &SubtleCrypto,
944 format: &str,
945 key: &CryptoKey,
946 wrapping_key: &CryptoKey,
947 wrap_algorithm: &str,
948 ) -> Result<::js_sys::Promise, JsValue>;
949}