pub(crate) fn generate_key(
aes_algorithm: AesAlgorithm,
cx: &mut JSContext,
global: &GlobalScope,
normalized_algorithm: &SubtleAesKeyGenParams,
extractable: bool,
usages: Vec<KeyUsage>,
) -> Result<DomRoot<CryptoKey>, Error>Expand description
https://w3c.github.io/webcrypto/#aes-ctr-operations-generate-key https://w3c.github.io/webcrypto/#aes-cbc-operations-generate-key https://w3c.github.io/webcrypto/#aes-gcm-operations-generate-key https://w3c.github.io/webcrypto/#aes-kw-operations-generate-key https://wicg.github.io/webcrypto-modern-algos/#aes-ocb-operations-generate-key
The step order in the specification of AES-OCB is slightly different, but it is equivalent to this implementation.