pub(crate) fn import_key(
rsa_algorithm: RsaAlgorithm,
global: &GlobalScope,
normalized_algorithm: &SubtleRsaHashedImportParams,
format: KeyFormat,
key_data: &[u8],
extractable: bool,
usages: Vec<KeyUsage>,
can_gc: CanGc,
) -> Result<DomRoot<CryptoKey>, Error>Expand description
https://w3c.github.io/webcrypto/#rsassa-pkcs1-operations-import-key https://w3c.github.io/webcrypto/#rsa-pss-operations-import-key https://w3c.github.io/webcrypto/#rsa-oaep-operations-import-key
This implementation is based on the specification for RSA-PSS. When format is “jwk”, Step 2.7 in the specification for RSASSA-PKCS1-v1_5 is skipped since it is redundent. When format is “jwk”, Step 2.2 and 2.3 in the specification of RSA-OAEP are combined into a single step.