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

Side by Side Diff: LayoutTests/crypto/aes-gcm-encrypt-decrypt.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
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // [Taglen = 112] 54 // [Taglen = 112]
55 { 55 {
56 "key": "ed6cd876ceba555706674445c229c12d", 56 "key": "ed6cd876ceba555706674445c229c12d",
57 "iv": "92ecbf74b765bc486383ca2e", 57 "iv": "92ecbf74b765bc486383ca2e",
58 "plainText": "bfaaaea3880d72d4378561e2597a9b35", 58 "plainText": "bfaaaea3880d72d4378561e2597a9b35",
59 "cipherText": "bdd2ed6c66fa087dce617d7fd1ff6d93", 59 "cipherText": "bdd2ed6c66fa087dce617d7fd1ff6d93",
60 "additionalData": "95bd10d77dbe0e87fb34217f1a2e5efe", 60 "additionalData": "95bd10d77dbe0e87fb34217f1a2e5efe",
61 "authenticationTag": "ba82e49c55a22ed02ca67da4ec6f" 61 "authenticationTag": "ba82e49c55a22ed02ca67da4ec6f"
62 }, 62 },
63 63
64 // [Keylen = 192] 64 // [Keylen = 256]
65 // [IVlen = 96] 65 // [IVlen = 1024]
66 // [PTlen = 128] 66 // [PTlen = 408]
67 // [AADlen = 384] 67 // [AADlen = 720]
68 // [Taglen = 112] 68 // [Taglen = 32]
69 { 69 {
70 "key": "ae7972c025d7f2ca3dd37dcc3d41c506671765087c6b61b8", 70 "key": "e03548984a7ec8eaf0870637df0ac6bc17f7159315d0ae26a764fd224e483810",
71 "iv": "984c1379e6ba961c828d792d", 71 "iv": "f4feb26b846be4cd224dbc5133a5ae13814ebe19d3032acdd3a006463fdb71e83a9d5 d96679f26cc1719dd6b4feb3bab5b4b7993d0c0681f36d105ad3002fb66b201538e2b7479838ab83 402b0d816cd6e0fe5857e6f4adf92de8ee72b122ba1ac81795024943b7d0151bbf84ce87c8911f51 2c397d14112296da7ecdd0da52a",
72 "plainText": "d30b02c343487105219d6fa080acc743", 72 "cipherText": "fda718aa1ec163487e21afc34f5a3a34795a9ee71dd3e7ee9a18fdb24181d c982b29c6ec723294a130ca2234952bb0ef68c0f3",
73 "cipherText": "c4489fa64a6edf80e7e6a3b8855bc37c", 73 "additionalData": "aab26eb3e7acd09a034a9e2651636ab3868e51281590ecc948355e457 da42b7ad1391c7be0d9e82895e506173a81857c3226829fbd6dfb3f9657a71a2934445d7c05fa940 1cddd5109016ba32c3856afaadc48de80b8a01b57cb",
74 "additionalData": "edd8f630f9bbc31b0acf122998f15589d6e6e3e1a3ec89e0c6a6ece75 1610ebbf57fdfb9d82028ff1d9faebe37a268c1", 74 "authenticationTag": "4795fbe0",
75 "authenticationTag": "772ee7de0f91a981c36c93a35c88" 75 "plainText": "69fd0c9da10b56ec6786333f8d76d4b74f8a434195f2f241f088b2520fb5fa 29455df9893164fb1638abe6617915d9497a8fe2"
76 } 76 }
77 ]; 77 ];
78 78
79 function runAesGcmSuccessTestCase(testCase) 79 function runAesGcmSuccessTestCase(testCase)
80 { 80 {
81 var key = null; 81 var key = null;
82 var keyData = hexStringToUint8Array(testCase.key); 82 var keyData = hexStringToUint8Array(testCase.key);
83 var iv = hexStringToUint8Array(testCase.iv); 83 var iv = hexStringToUint8Array(testCase.iv);
84 var additionalData = hexStringToUint8Array(testCase.additionalData); 84 var additionalData = hexStringToUint8Array(testCase.additionalData);
85 var tag = hexStringToUint8Array(testCase.authenticationTag); 85 var tag = hexStringToUint8Array(testCase.authenticationTag);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 kAesGcmSuccessVectors.forEach(function(test) { 118 kAesGcmSuccessVectors.forEach(function(test) {
119 lastPromise = lastPromise.then(runAesGcmSuccessTestCase.bind(null, test)); 119 lastPromise = lastPromise.then(runAesGcmSuccessTestCase.bind(null, test));
120 }); 120 });
121 121
122 lastPromise.then(finishJSTest, failAndFinishJSTest); 122 lastPromise.then(finishJSTest, failAndFinishJSTest);
123 123
124 </script> 124 </script>
125 125
126 </body> 126 </body>
127 </html> 127 </html>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/aes-export-key-expected.txt ('k') | LayoutTests/crypto/aes-gcm-encrypt-decrypt-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698