pub(crate) fn generate_key<D: Equivalence>(
cx: &mut JSContext,
global: &D::GlobalScope,
aes_algorithm: AesAlgorithm,
normalized_algorithm: &AesKeyGenParams,
extractable: bool,
usages: Vec<KeyUsage>,
) -> Result<DomRoot<CryptoKey<D>>, 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.