Index: LayoutTests/crypto/resources/common.js |
diff --git a/LayoutTests/crypto/resources/common.js b/LayoutTests/crypto/resources/common.js |
index d2335ab63fe3ef8b8893551e35c415ed5fd4b902..07f15148af15aff5cf9aa15a671b5762ccaf0889 100644 |
--- a/LayoutTests/crypto/resources/common.js |
+++ b/LayoutTests/crypto/resources/common.js |
@@ -10,13 +10,15 @@ function importTestKeys() |
var aesCbcJustDecrypt = crypto.subtle.importKey(keyFormat, data, {name: 'AES-CBC'}, false, ['decrypt']); |
// FIXME: use AES-CTR key type once it's implemented |
var aesCtrPromise = crypto.subtle.importKey(keyFormat, data, {name: 'AES-CBC'}, extractable, keyUsages); |
+ var aesGcmPromise = crypto.subtle.importKey(keyFormat, data, {name: 'AES-GCM'}, extractable, keyUsages); |
- return Promise.all([hmacPromise, aesCbcPromise, aesCbcJustDecrypt, aesCtrPromise]).then(function(results) { |
+ return Promise.all([hmacPromise, aesCbcPromise, aesCbcJustDecrypt, aesCtrPromise, aesGcmPromise]).then(function(results) { |
return { |
hmacSha1: results[0], |
aesCbc: results[1], |
aesCbcJustDecrypt: results[2], |
aesCtr: results[3], |
+ aesGcm: results[4], |
}; |
}); |
} |