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