mirror of
https://github.com/servo/servo
synced 2026-05-10 00:52:08 +02:00
Refactoring of the algorithm normalization in #39431 introduces a new algorithm normalization procedure to replace the existing one, and we continue the migration here. In this patch: - The `SubtleCrypto.generateKey` method is migrated from using existing `normalize_algorithm_for_generate_key` function to using the new `normalize_algorithm` function. - The custom type `KeyGenerationAlgorithm` used by `normalize_algorithm_for_generate_key` is removed. - The functions `generate_key_aes` and `generate_key_hmac` are moved to the sub-module `aes_operation` and `hmac_operation`, respectively. Testing: Refactoring. Existing WPT tests suffice. Fixes: Part of #39368 Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>