Skip to content

Commit e3aaf74

Browse files
authored
script: Migrate wrapKey/unwrapKey operation to use new normalization (servo#39780)
Refactoring of the algorithm normalization in servo#39431 introduces a new algorithm normalization procedure to replace the existing one, and we continue the migration here. In this patch: - The `SubtleCrypto.wrapKey` and `SubtleCrypto.unwrapKey` method is migrated from using existing `normalize_algorithm_for_key_wrap` function to using the new `normalize_algorithm` function. - `SubtleCrypto::wrap_key_aes_kw` and `SubtleCrypto::unwrap_key_aes_kw` are moved to the sub-module `aes_operation`. - The custom type `KeyWrapAlgorithm` used by `normalize_algorithm_for_key_wrap` is also removed. - The following algorithm that had been copied to `aes_operation` sub-module are removed in this patch since they are no longer used. - `SubtleCrypto::encrypt_decrypt_aes_ctr` - `SubtleCrypto::encrypt_aes_gcm` - `SubtleCrypto::decrypt_aes_gcm` - `SubtleCrypto::export_aes_aes` Testing: Refactoring. Existing WPT tests suffice. Fixes: Part of servo#39368 Signed-off-by: Kingsley Yung <[email protected]>
1 parent 77502dc commit e3aaf74

File tree

2 files changed

+385
-856
lines changed

2 files changed

+385
-856
lines changed

0 commit comments

Comments
 (0)