Function perform_export_key_operation

Source
fn perform_export_key_operation(
    format: KeyFormat,
    key: &CryptoKey,
) -> Result<ExportedKey, Error>
Expand description

Return the result of performing the export key operation specified by the [[algorithm]] internal slot of key using key and format.

According to the WebCrypto API spec, the export key operation does not rely on the algorithm normalization, We create this helper function to minic the functions of NormalizedAlgorithm for export key operation.