| 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 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Derived from [1] F.2.1 (CBC-AES128.Encrypt), by adding padding block. | 28 // Derived from [1] F.2.1 (CBC-AES128.Encrypt), by adding padding block. |
| 29 { | 29 { |
| 30 key: "2b7e151628aed2a6abf7158809cf4f3c", | 30 key: "2b7e151628aed2a6abf7158809cf4f3c", |
| 31 iv: "000102030405060708090a0b0c0d0e0f", | 31 iv: "000102030405060708090a0b0c0d0e0f", |
| 32 plainText: "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51
30c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710", | 32 plainText: "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51
30c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710", |
| 33 cipherText: "7649abac8119b246cee98e9b12e9197d5086cb9b507219ee95db113a917678b
273bed6b8e3c1743b7116e69e222295163ff1caa1681fac09120eca307586e1a7" + | 33 cipherText: "7649abac8119b246cee98e9b12e9197d5086cb9b507219ee95db113a917678b
273bed6b8e3c1743b7116e69e222295163ff1caa1681fac09120eca307586e1a7" + |
| 34 // Padding block. | 34 // Padding block. |
| 35 "8cb82807230e1321d3fae00d18cc2012" | 35 "8cb82807230e1321d3fae00d18cc2012" |
| 36 }, | 36 }, |
| 37 | 37 |
| 38 // 192-bit key, where final block of plaintext has to pad by 15. | |
| 39 // Derived from [1] F.2.3 (CBC-AES192.Encrypt), by stripping 15 bytes off | |
| 40 // plaintext and adding padding block. | |
| 41 { | |
| 42 key: "8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b", | |
| 43 iv: "000102030405060708090a0b0c0d0e0f", | |
| 44 plainText: "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51
30c81c46a35ce411e5fbc1191a0a52eff6", | |
| 45 cipherText: "4f021db243bc633d7178183a9fa071e8b4d9ada9ad7dedf4e5e738763f69145
a571b242012fb7ae07fa9baac3df102e0" + | |
| 46 // Padding block. | |
| 47 "288c6f9ec554652e50ab55e121f099ae" | |
| 48 }, | |
| 49 | |
| 50 // 256-bit key, where final block of plaintext has to pad by 3. | 38 // 256-bit key, where final block of plaintext has to pad by 3. |
| 51 // Derived from [1] F.2.6 CBC-AES256.Decrypt, by stripping 3 bytes off | 39 // Derived from [1] F.2.6 CBC-AES256.Decrypt, by stripping 3 bytes off |
| 52 // plaintext and adding padding block. | 40 // plaintext and adding padding block. |
| 53 { | 41 { |
| 54 key: "603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4", | 42 key: "603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4", |
| 55 iv: "000102030405060708090a0b0c0d0e0f", | 43 iv: "000102030405060708090a0b0c0d0e0f", |
| 56 plainText: "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51
30c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be6", | 44 plainText: "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51
30c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be6", |
| 57 cipherText: "f58c4c04d6e5f1ba779eabfb5f7bfbd69cfc4e967edb808d679f777bc6702c7
d39f23369a9d9bacfa530e26304231461c9aaf02a6a54e9e242ccbf48c59daca6" | 45 cipherText: "f58c4c04d6e5f1ba779eabfb5f7bfbd69cfc4e967edb808d679f777bc6702c7
d39f23369a9d9bacfa530e26304231461c9aaf02a6a54e9e242ccbf48c59daca6" |
| 58 }, | 46 }, |
| 59 | 47 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 kAesCbcSuccessVectors.forEach(function(test) { | 93 kAesCbcSuccessVectors.forEach(function(test) { |
| 106 lastPromise = lastPromise.then(runAesCbcSuccessTestCase.bind(null, test)); | 94 lastPromise = lastPromise.then(runAesCbcSuccessTestCase.bind(null, test)); |
| 107 }); | 95 }); |
| 108 | 96 |
| 109 lastPromise.then(finishJSTest, failAndFinishJSTest); | 97 lastPromise.then(finishJSTest, failAndFinishJSTest); |
| 110 | 98 |
| 111 </script> | 99 </script> |
| 112 | 100 |
| 113 </body> | 101 </body> |
| 114 </html> | 102 </html> |
| OLD | NEW |