(
ctx: &Ctx<'js>,
mode: KeyAlgorithmMode<'_, 'js>,
algorithm_name: &str,
)
| 315 | pub enum KeyFormatData<'js> { |
| 316 | Jwk(Object<'js>), |
| 317 | Raw(ObjectBytes<'js>), |
| 318 | Spki(ObjectBytes<'js>), |
| 319 | Pkcs8(ObjectBytes<'js>), |
| 320 | } |
| 321 | |
| 322 | #[derive(PartialEq)] |
| 323 | pub enum KeyAlgorithmMode<'a, 'js> { |
| 324 | Import { |
| 325 | format: KeyFormatData<'js>, |
| 326 | kind: &'a mut KeyKind, |
| 327 | data: &'a mut Vec<u8>, |
| 328 | }, |
| 329 | Generate, |
| 330 | Derive, |
| 331 | } |
| 332 | |
| 333 | pub struct KeyAlgorithmWithUsages { |
| 334 | pub name: String, |
| 335 | pub algorithm: KeyAlgorithm, |
| 336 | pub public_usages: Vec<String>, |
| 337 | pub private_usages: Vec<String>, |
| 338 | } |
no test coverage detected