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

Side by Side Diff: LayoutTests/crypto/subtle/aes-kw/wrapKey-unwrapKey-raw.html

Issue 957713004: [WebCrypto] Split LayoutTests/crypto/subtle into per-algorithm directories (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 5 years, 10 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
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("Tests wrapping and unwrapping of AES-CBC keys using AES-KW and raw format"); 12 description("Tests wrapping and unwrapping of AES-CBC keys using AES-KW and raw format");
13 13
14 jsTestIsAsync = true; 14 jsTestIsAsync = true;
15 15
16 var kWrappingTestCases = [ 16 var kWrappingTestCases = [
17 // AES-KW test vectors from http://www.ietf.org/rfc/rfc3394.txt 17 // AES-KW test vectors from http://www.ietf.org/rfc/rfc3394.txt
18 // 4.1 Wrap 128 bits of Key Data with a 128-bit KEK 18 // 4.1 Wrap 128 bits of Key Data with a 128-bit KEK
19 { 19 {
20 "wrappingKey": "000102030405060708090A0B0C0D0E0F", 20 "wrappingKey": "000102030405060708090A0B0C0D0E0F",
21 "key": "00112233445566778899AABBCCDDEEFF", 21 "key": "00112233445566778899AABBCCDDEEFF",
22 "ciphertext": "1FA68B0A8112B447AEF34BD8FB5A7B829D3E862371D2CFE5" 22 "ciphertext": "1FA68B0A8112B447AEF34BD8FB5A7B829D3E862371D2CFE5"
23 }, 23 },
24 // 4.3 Wrap 128 bits of Key Data with a 256-bit KEK 24 // 4.3 Wrap 128 bits of Key Data with a 256-bit KEK
25 { 25 {
26 "wrappingKey": "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D 1E1F", 26 "wrappingKey": "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D 1E1F",
27 "key": "00112233445566778899AABBCCDDEEFF", 27 "key": "00112233445566778899AABBCCDDEEFF",
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 kWrappingTestCases.forEach(function(test) { 100 kWrappingTestCases.forEach(function(test) {
101 lastPromise = lastPromise.then(runTestCase.bind(null, test)); 101 lastPromise = lastPromise.then(runTestCase.bind(null, test));
102 }); 102 });
103 103
104 lastPromise.then(finishJSTest, failAndFinishJSTest); 104 lastPromise.then(finishJSTest, failAndFinishJSTest);
105 105
106 </script> 106 </script>
107 107
108 </body> 108 </body>
109 </html> 109 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698