Tests: Re-import WebCryptoAPI tests

Some test have changed name and some utilities have now expanded to
accommodate new algorithms.
This commit is contained in:
Tete17
2025-11-25 15:50:23 +01:00
committed by Jelle Raaijmakers
parent 8a79792a58
commit aa44d254a4
Notes: github-actions[bot] 2025-12-10 20:30:16 +00:00
37 changed files with 1325 additions and 280 deletions

View File

@@ -284,7 +284,7 @@ function run_test() {
resolve(vector);
});
} else {
return subtle.importKey("raw", vector.keyBuffer, {name: vector.algorithm.name}, false, usages)
return subtle.importKey(vector.algorithm.name.toUpperCase() === "AES-OCB" ? "raw-secret" : "raw", vector.keyBuffer, {name: vector.algorithm.name}, false, usages)
.then(function(key) {
vector.key = key;
return vector;