OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script src="resources/common.js"></script> | 5 <script src="resources/common.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 | 10 |
11 <script> | 11 <script> |
12 description("Tests calls to unwrapKey() with bad inputs."); | 12 description("Tests calls to unwrapKey() with bad inputs."); |
13 | 13 |
14 jsTestIsAsync = true; | 14 jsTestIsAsync = true; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 aesCtrAlgorithm = {name: 'AES-CTR', counter: new Uint8Array(16), length: 0}; | 69 aesCtrAlgorithm = {name: 'AES-CTR', counter: new Uint8Array(16), length: 0}; |
70 return crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, aesCtrAlgor
ithm, unwrappedKeyAlgorithm, extractable, keyUsages); | 70 return crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, aesCtrAlgor
ithm, unwrappedKeyAlgorithm, extractable, keyUsages); |
71 }).then(failAndFinishJSTest, function(result) { | 71 }).then(failAndFinishJSTest, function(result) { |
72 logError(result); | 72 logError(result); |
73 }).then(finishJSTest, failAndFinishJSTest); | 73 }).then(finishJSTest, failAndFinishJSTest); |
74 | 74 |
75 </script> | 75 </script> |
76 | 76 |
77 </body> | 77 </body> |
78 </html> | 78 </html> |
OLD | NEW |