export_key

Function export_key 

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

https://wicg.github.io/webcrypto-modern-algos/#ml-dsa-operations-export-key

The exportKey() method does not involve AlgorithmIdentifier and algorithm normalization, so there should not be normalizedAlgorithm in the export key operation. It could be a mistake in the specification (Related issue: https://github.com/WICG/webcrypto-modern-algos/issues/47).

In our implementation, we use the name attribute of the [[algorithhm]] internal slot of key to determine the security category.