Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: LayoutTests/crypto/jwk-import-use-values.html

Issue 325323004: [webcrypto] Remove support for AES 192-bit keys (1 of 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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("Test importing keys with various uses from JWK."); 12 description("Test importing keys with various uses from JWK.");
13 13
14 jsTestIsAsync = true; 14 jsTestIsAsync = true;
15 15
16 var extractable = true; 16 var extractable = true;
17 17
18 var aesKeyAsJSON = { 18 var aesKeyAsJSON = {
19 "alg": "A192CBC", 19 "alg": "A128CBC",
20 "ext": true, 20 "ext": true,
21 "kty": "oct", 21 "kty": "oct",
22 "k": "jnOw99oOZFLIEPMrgJB55WL46tJSLGt7" 22 "k": "jnOw99oOZFLIEPMrgJB55Q"
23 }; 23 };
24 24
25 var hmacKeyAsJSON = { 25 var hmacKeyAsJSON = {
26 "alg": "HS256", 26 "alg": "HS256",
27 "ext": true, 27 "ext": true,
28 "kty": "oct", 28 "kty": "oct",
29 "k": "ahjkn-_387fgnsibf23qsvahjkn-_387fgnsibf23qs" 29 "k": "ahjkn-_387fgnsibf23qsvahjkn-_387fgnsibf23qs"
30 }; 30 };
31 31
32 function testWithAESCBC(expectedUsages, jwkUsages, importUsages) 32 function testWithAESCBC(expectedUsages, jwkUsages, importUsages)
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 testWithAESCBC(["decrypt"], {key_ops: ["Encrypt", "decrypt"]}, ["decrypt"]), 114 testWithAESCBC(["decrypt"], {key_ops: ["Encrypt", "decrypt"]}, ["decrypt"]),
115 testWithAESCBC(null, {key_ops: ["'encrypt'", "decrypt"]}, ["encrypt"]), 115 testWithAESCBC(null, {key_ops: ["'encrypt'", "decrypt"]}, ["encrypt"]),
116 testWithAESCBC(null, {key_ops: ["encrypt "]}, ["encrypt"]), 116 testWithAESCBC(null, {key_ops: ["encrypt "]}, ["encrypt"]),
117 testWithAESCBC(null, {key_ops: ["Encrypt"]}, ["encrypt"]), 117 testWithAESCBC(null, {key_ops: ["Encrypt"]}, ["encrypt"]),
118 118
119 ]).then(finishJSTest, failAndFinishJSTest); 119 ]).then(finishJSTest, failAndFinishJSTest);
120 </script> 120 </script>
121 121
122 </body> 122 </body>
123 </html> 123 </html>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/jwk-export-use-values.html ('k') | LayoutTests/crypto/resources/subtle-crypto-concurrent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698